private void CheckPlayerPotion(string potionName, string weaponTyp, PictureBox weaponPictureBox) { weaponPictureBox.BorderStyle = BorderStyle.None; if (_game.CheckPlayerInventory(potionName)) { if (!_game.CheckPotionUsed(potionName)) { weaponPictureBox.Visible = true; if (_game.IsWeaponEquipped(potionName)) { weaponPictureBox.BorderStyle = BorderStyle.FixedSingle; SetupAttackButtons(weaponTyp); _isPotionNeeded = true; } } else { weaponPictureBox.BorderStyle = BorderStyle.None; weaponPictureBox.Visible = false; if (_isPotionNeeded) { _game.Equip("Sword"); CheckPlayerWeapon("Sword", "Weapon", pictureBoxWeapon1); SetupAttackButtons("weapon"); _isPotionNeeded = false; } } } }