From c912394dd94ae26167276a8f554629ae683fe203 Mon Sep 17 00:00:00 2001 From: Vikramb987 <47336882+Vikramb987@users.noreply.github.com> Date: Mon, 11 Mar 2019 09:09:53 -0600 Subject: [PATCH] Update TaipanShopGUI.java fixed minor error --- src/TaipanShopGUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaipanShopGUI.java b/src/TaipanShopGUI.java index 712f284..0a90692 100644 --- a/src/TaipanShopGUI.java +++ b/src/TaipanShopGUI.java @@ -339,7 +339,7 @@ public class TaipanShopGUI { } else if (armsButton.getText().contains(".")) { textOut.setText(originalDialogue + "\n\t" + player.getName() + ", how am I supposed to buy " + "'" + num + "'" + " Arms?"); } else if (generalButton.getText().contains(".") && num <= player.getMoney() / generalPrice && num >= 0) { - player.setArmsHeld(player.getArmsHeld() + num); + player.setGeneralHeld(player.getGeneralHeld()+num); player.setMoney(player.getMoney() - num * generalPrice); } else if (num >= 0 && generalButton.getText().contains(".")) { textOut.setText(originalDialogue + "\n\t" + player.getName() + ", you can't afford that!");