Пример #1
0
		private void ReduceStat(Stat stat, string resistance, float adjustment)
		{
			float resistValue = GetResistValue(resistance);
			var netAdjustment = adjustment + resistValue;
			if (netAdjustment < 0)
				stat.Adjust(netAdjustment);
		}
Пример #2
0
		private static void BoostStat(Stat stat, float adjustment)
		{
			stat.Adjust(adjustment);
		}