Пример #1
0
        public override int Action(CharacterBase source, CharacterBase target, out string message)
        {
            int heal = 0;

            heal           = source.MagicAttack + 5;
            source.Health += heal;
            message        = source.GetName() + " recovered " + heal + " health!";
            source.Stamina = source.Stamina - 5;
            return(heal);
        }
Пример #2
0
        public override int Action(CharacterBase source, CharacterBase target, out string message)
        {
            float damage = 0;

            damage         = source.PhysicalAttack - (target.PhysicalDefense / source.PhysicalAttack);
            target.Health -= (int)damage;
            message        = source.GetName() + " hit " + target.GetName() + " and dealt " + damage + " damage!";
            if (damage < 1)
            {
                damage = 1;
            }
            return((int)damage);
        }
Пример #3
0
        public override int Action(CharacterBase source, CharacterBase target, out string message)
        {
            float damage = 0;

            damage         = source.MagicAttack - (target.MagicDefense / source.MagicAttack);
            target.Health -= (int)damage;
            message        = source.GetName() + " cast a spell on " + target.GetName() + " and dealt " + damage + " damage!";
            if (damage < 1)
            {
                damage = 1;
            }
            source.Stamina = source.Stamina - 2;
            return((int)damage);
        }
Пример #4
0
 public override string Use(CharacterBase target)
 {
     return(target.GetName() + " equipped the " + GetName() + "!");
 }