Pushed the fix for ship repair while 100 hp
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user