public void steal(Humanoid target) { Console.WriteLine("All your training amounts to this."); Health += 10; this.PhyAttack(target); Console.WriteLine("They never see you comming to strike."); }
static void Main(string[] args) { Humanoid bob = new Humanoid("bob"); Wizard jim = new Wizard("Harry"); Samuari jack = new Samuari(); bob.showAllStats(); jim.showName(); jack.showName(); }
public void fireball(Humanoid target) { Console.WriteLine("A spark forms in your hand."); Random random = new Random(); int itHurts = random.Next(20, 51); Console.WriteLine("It grows and bursts into flame."); target.Health -= itHurts; dmgMessage(target, itHurts); }
public void death_blow(Humanoid target) { if (target.Health < 50) { Console.WriteLine("Ryū ga waga teki wo kurau!"); target.Health = 0; } else { Console.WriteLine("Your opponent has more resolve than you believed."); } }
public void PhyAttack(Humanoid defender) { int dmg = this.Strength * 5; dmgMessage(defender, dmg); }
public void dmgMessage(Humanoid defender, int dmg) { Console.WriteLine($"You are attacking {defender.Name}"); defender.Health = (defender.Health - dmg); Console.WriteLine($"{defender.Name} took {dmg} Damage"); }
public void MpAttack(Humanoid defender) { int dmg = this.Intelligence * 5; dmgMessage(defender, dmg); }