public void Rest() { if (CurrentPlayer.CurrentHitPoints < CurrentPlayer.MaximumHitPoints) { CurrentPlayer.CompletelyHeal(); } }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { RaiseMessage(" "); RaiseMessage($"You have been killed"); CurrentLocation = CurrentWorld.LocationAt(0, -1); CurrentPlayer.CompletelyHeal(); }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { RaiseMessage(""); RaiseMessage($"The {CurrentMonster.Name} killed you."); CurrentLocation = CurrentWorld.LocationAt(0, -1); CurrentPlayer.CompletelyHeal(); }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { _messageBroker.RaiseMessage(""); _messageBroker.RaiseMessage($"You have been slain"); CurrentLocation = CurrentWorld.LocationAt(0, 0); CurrentPlayer.CompletelyHeal(); }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { RaiseMessage(""); RaiseMessage($"Something has defeated you. You awaken back at home."); CurrentLocation = CurrentWorld.LocationAt(0, -1); CurrentPlayer.CompletelyHeal(); }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { RaiseMessage(""); RaiseMessage("You have been defeated."); //Idea: Create a variable for home location CurrentLocation = CurrentWorld.LocationAt(1, 2); CurrentPlayer.CompletelyHeal(); }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { RaiseMessage(""); RaiseMessage($"You died. Idiot."); CurrentPlayer.CompletelyHeal(); CurrentLocation = CurrentWorld.LocationAt(0, -1);//Player's home }
private void OnCurrentPlayerKilled(object sender, System.EventArgs eventArgs) { RaiseMessage(""); RaiseMessage("Zabili tě."); CurrentLocation = CurrentWorld.LocationAt(0, -1); CurrentPlayer.CompletelyHeal(); CurrentPlayer.CompletelyRegainMana(); }
public void Rest() { if (IsHome) { RaiseMessage($"Odpočinkem sis doplnil všechnu manu a HP."); CurrentPlayer.CompletelyHeal(); CurrentPlayer.CompletelyRegainMana(); } }
private void OnCurrentPlayerKilled(object sender, System.EventArgs e) { // If player dies, revive at home RaiseMessage(""); //RaiseMessage($"The {CurrentMonster.Name} killed you."); RaiseMessage($"You have been killed."); CurrentLocation = CurrentWorld.LocationAt(0, -1); // Player home CurrentPlayer.CompletelyHeal(); }
public void MonsterAttackDamageCalculation() { int damageDealtToPlayer = RandomNumberGenerator.NumberBetween (CurrentMonster.MinimumDamage, CurrentMonster.MaximumDamage) + StatisticsCalculator.AbilityScoreCalculator(CurrentMonster.Strength); MonsterAttackSuccessNotification(damageDealtToPlayer); CurrentPlayer.TakeDamage(damageDealtToPlayer); if (CurrentPlayer.IsDead) { CurrentLocation = CurrentWorld.LocationAt(0, -1); CurrentPlayer.CompletelyHeal(); } }
private void OnCurrentPlayerLeveledUp(object sender, System.EventArgs eventArgs) { RaiseMessage($"Dosáhl si levelu {CurrentPlayer.Level}!"); CurrentPlayer.CompletelyHeal(); CurrentPlayer.CompletelyRegainMana(); }