Aura.Channel.Skills.Life.Campfire.GetDuration C# (CSharp) Method

GetDuration() private method

Returns duration for rank in minutes.
private GetDuration ( SkillRank rank, int regionId ) : int
rank SkillRank
regionId int
return int
		private int GetDuration(SkillRank rank, int regionId)
		{
			var duration = 4;
			if (rank >= SkillRank.RC && rank <= SkillRank.R6)
				duration = 5;
			else if (rank >= SkillRank.R5)
				duration = 6;

			// Lower duration during rain
			var weatherType = ChannelServer.Instance.Weather.GetWeatherType(regionId);
			if (weatherType == WeatherType.Rain)
				duration /= 2; // Unofficial

			return duration;
		}