public int Kick(ref Player player, int bonusDamage) { if (player.GetStamina() <= 0) { Console.WriteLine("You don't have enough mana!"); Console.ReadLine(); player.SetStamina(player.GetStamina()); } else { int damage = 10 + bonusDamage; player.SetStamina(30); return(damage); } return(0); }
public void CastAbility(ref Player player) { Random rnd = new Random(); switch (rnd.Next(1, 3)) { case 1: player.SetStamina(Hook()); break; case 2: player.SetHealth(Backfist()); break; case 3: player.SetHealth(AxeKick()); break; } }
public void CastAbility(ref Player player) { Random rnd = new Random(); switch (rnd.Next(1, 3)) { case 1: player.SetStamina(Scare()); break; case 2: player.SetHealth(Claw()); break; case 3: player.SetHealth(ShootFireBall()); break; } }
public void StartEncouter(ref Player player, ref Map map) { Console.WriteLine("The Blood Drake Attacks!"); do { Program.HealthUI("Blood Drake", health, maxHealth, stamina, maxStamina, 10); CastAbility(ref player); FightUI fui = new FightUI(); health -= fui.ShowFightUI(ref player); Console.Clear(); } while (health > 1); Console.WriteLine("The Blood Drake falls down from the sky!"); Console.ReadLine(); Console.Clear(); Console.WriteLine("Congrats! You've defeated the Blood Drake!"); player.SetGold(10); player.SetStamina(-player.GetMaxStamina()); Console.WriteLine("You get 10G loot!"); }
public void ResetStamina(ref Player player) { player.SetStamina(-(player.GetMaxStamina() - player.GetStamina())); }