public static void Hide(PictureBox pic, Label des, Button right, Button Left, Characters player) { Location wellHouse = new MedLoc(globalVar.locations[2], globalVar.meds[3], 5, 5, globalVar.enemies[0], 200, 30, 1, globalVar.npcs[1]); Inventory.addItem(wellHouse.getItem(), player); string desc = Logic.description.describeObj(2, 2, 3, 0, 1); playerChoices.addToList(desc); pic.Image = Image.FromFile("Ed3.jpg"); des.Text = "While hiding, you realize Pennywise was \n watching you and is abaout to attack you. What do you do?"; right.Text = "Use your inhaler"; Left.Text = "Attack with a weapon"; right.Visible = true; Left.Visible = true; right.Click += (sender, args) => { player.heal(player, player.ownedMeds[0].getHP()); Eddie3.In(pic, des, right, Left); }; Left.Click += (sender, args) => { globalVar.courage += 1; player.attack(wellHouse.getEnemy(), player.ownedWeapons[0]); Inventory.removeItem(player.ownedWeapons[0], player); Eddie3.At(pic, des, right, Left, player); }; }
public static void Wall(PictureBox pic, Label tit, Label des, Button right, Button Left, Characters player) { Location wellHouse = new MedLoc(globalVar.locations[2], globalVar.meds[3], 5, 5, globalVar.enemies[0], 150, 30, 1, globalVar.npcs[1]); Inventory.addItem(wellHouse.getItem(), player); string desc = Logic.description.describeObj(0, 2, 3, 0, 1); playerChoices.addToList(desc); pic.Image = Image.FromFile("F0.jpg"); tit.Text = "FINAL BATTLE"; des.Text = desc + "You're about to fight Pennywise but his accomplice \nBowers wants to get rid of you. \nYou need a weapon to defend yourself."; Left.Visible = false; right.Text = "Attack with a weapon"; right.Visible = true; right.Click += (sender, args) => { player.attack(wellHouse.getEnemy(), player.ownedWeapons[0]); Inventory.removeItem(player.ownedWeapons[0], player); End1.AtBow(pic, tit, des, right, Left, player); }; Left.Click += (sender, args) => { End0.Wall(pic, tit, des, right, Left, player); }; }
public static void sotano(PictureBox pic, Label des, Button Right, Button Left, Characters player) { Location library1 = new MedLoc(globalVar.locations[0], globalVar.meds[0], 10, 5, globalVar.enemies[5], 100, 20, 1.5f, globalVar.npcs[6]); Inventory.addItem(library1.getItem(), player); string desc = Logic.description.describeObj(0, 0, 0, 5, 6); playerChoices.addToList(desc); pic.Image = Image.FromFile("Ben2.2.jpg"); des.Text = desc + "You see a headless man's corpse in the basement \n walking towards you. What do you do?"; Right.Visible = true; Left.Visible = true; Right.Text = "Run away"; Left.Text = "Attack"; Right.Click += (sender, args) => { Ben3.huir(pic, des, Right, Left); playerChoices.addToList("You ran away."); }; Left.Click += (sender, args) => { //Coraje globalVar.courage += 1; player.attack(library1.getEnemy(), player.ownedWeapons[0]); Inventory.removeItem(player.ownedWeapons[0], player); playerChoices.addToList("You attacked the headless man."); Ben3.atacar(pic, des, Right, Left); }; }