Пример #1
0
 public static void InvokeCreatureDamaged(CreatureDamagedEventArgs args)
 {
     if (CreatureDamaged != null)
     {
         CreatureDamaged(args);
     }
 }
Пример #2
0
        /// <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));
        }
Пример #3
0
 public static void InvokeCreatureDamaged( CreatureDamagedEventArgs args )
 {
     if( CreatureDamaged != null )
         CreatureDamaged(args);
 }