Aura.Channel.Scripting.Scripts.ItemScript.Treat C# (CSharp) Method

Treat() protected method

Reduces injuries by amount.
protected Treat ( Creature creature, double injuries, double toxicity ) : void
creature Aura.Channel.World.Entities.Creature
injuries double
toxicity double
return void
		protected void Treat(Creature creature, double injuries, double toxicity)
		{
			// Friday: All potions become more potent. (Potion effect x 1.5 including toxicity).
			// +50%? Seems a lot, but that's what the Wiki says.
			if (ErinnTime.Now.Month == ErinnMonth.AlbanElved)
				toxicity *= 1.5;

			var beforeInjuries = creature.Injuries;
			creature.Injuries -= (float)injuries;
			var diffInjuries = beforeInjuries - creature.Injuries;

			this.Poison(creature, diffInjuries, 0, 0, toxicity);
		}