Aura.Channel.Scripting.Scripts.ItemScript.Weaken C# (CSharp) Метод

Weaken() защищенный Метод

Activates weaken conditions for creature.
protected Weaken ( Creature creature, int levels, int duration ) : void
creature Aura.Channel.World.Entities.Creature
levels int Amount of levels to lower the power level.
duration int Duration of the state.
Результат void
		protected void Weaken(Creature creature, int levels, int duration)
		{
			levels = Math2.Clamp(1, 255, levels);

			var extra = new MabiDictionary();
			extra.SetByte("WKN_LV", (byte)levels);

			// min -> ms
			duration = duration * 60 * 1000;

			Send.Notice(creature, Localization.Get("The enemies seem to be much more powerful now."));
			creature.Conditions.Activate(ConditionsA.Weaken, extra, duration);
		}
	}