public static void InvokeCreatureDamaged(CreatureDamagedEventArgs args) { if (CreatureDamaged != null) { CreatureDamaged(args); } }
/// <summary> /// Grants EoC for damaging a <code>BaseCreature</code> /// </summary> private static void OnCreatureDamaged(CreatureDamagedEventArgs args) { if (args.Aggressor == null || !args.Aggressor.Player) { return; } Player p = (Player)args.Aggressor; p.EssenceOfCharacter += Math.Max(1, (args.DamageAmount / 5)); }
public static void InvokeCreatureDamaged( CreatureDamagedEventArgs args ) { if( CreatureDamaged != null ) CreatureDamaged(args); }