Pushed the fix for ship repair while 100 hp

This commit is contained in:
2019-03-25 00:08:40 -06:00
parent 0f56a515c1
commit 24cb7ea70e

View File

@@ -146,7 +146,7 @@ public class RandomEventGUI extends Player{
break; break;
} }
//Ship Repair //Ship Repair
if (randGenNum == 3 && getHP() < 101) { if (randGenNum == 3 && getHP() < 100) {
itemPrice = (int) ((100 - getPlayer().getHP()) * 10 + 10); 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); sellingItemLabel.setText("Mc Henry from the Hong Kong shipyard has arrived, would be willing to repair your ship for $" + itemPrice);
break; break;