Example #1
0
        void HealHpPercent(FightActor actor, int percent)
        {
            var healAmount = (int)(actor.MaxLifePoints * (percent / 100d));

            actor.Heal(healAmount, Caster, true);
        }
Example #2
0
        static void HealHpPercent(FightActor actor, int amount, int percent)
        {
            var healAmount = (int)(amount * (percent / 100d));

            actor.Heal(healAmount, actor, true);
        }
Example #3
0
        private void HealHpPercent(FightActor actor, int percent)
        {
            int healPoints = (int)((double)actor.MaxLifePoints * ((double)percent / 100.0));

            actor.Heal(healPoints, base.Caster, false);
        }