Ejemplo n.º 1
0
        private int CastReplenishSpell(ReplenishSpell replenishSpell)
        {
            int intellectAffectModifier = 60;

            CurrentMana -= replenishSpell.ManaCost;

            double replenishAmount = replenishSpell.ReplenishValue * (1 + ((double)Intellect / intellectAffectModifier));

            return((int)replenishAmount);
        }
Ejemplo n.º 2
0
 private void PlayerCastReplenish(int replenishValue, ReplenishSpell replenishSpell)
 {
     RaiseMessage(CurrentPlayer.Name + " casts " + replenishSpell.Name + " and heals for " + replenishValue + " hitpoints");
     CurrentPlayer.CurrentHealth += replenishValue;
 }