private int CastReplenishSpell(ReplenishSpell replenishSpell) { int intellectAffectModifier = 60; CurrentMana -= replenishSpell.ManaCost; double replenishAmount = replenishSpell.ReplenishValue * (1 + ((double)Intellect / intellectAffectModifier)); return((int)replenishAmount); }
private void PlayerCastReplenish(int replenishValue, ReplenishSpell replenishSpell) { RaiseMessage(CurrentPlayer.Name + " casts " + replenishSpell.Name + " and heals for " + replenishValue + " hitpoints"); CurrentPlayer.CurrentHealth += replenishValue; }