From 24cb7ea70e4b66fb7c751e4c9ad7c33e07932b13 Mon Sep 17 00:00:00 2001 From: Solargale Date: Mon, 25 Mar 2019 00:08:40 -0600 Subject: [PATCH] Pushed the fix for ship repair while 100 hp --- src/RandomEventGUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomEventGUI.java b/src/RandomEventGUI.java index ff25e89..f4405b9 100644 --- a/src/RandomEventGUI.java +++ b/src/RandomEventGUI.java @@ -146,7 +146,7 @@ public class RandomEventGUI extends Player{ break; } //Ship Repair - if (randGenNum == 3 && getHP() < 101) { + if (randGenNum == 3 && getHP() < 100) { itemPrice = (int) ((100 - getPlayer().getHP()) * 10 + 10); sellingItemLabel.setText("Mc Henry from the Hong Kong shipyard has arrived, would be willing to repair your ship for $" + itemPrice); break;