Made it so that randomEventGUI looks normal on Linux

This commit is contained in:
2019-03-25 13:26:01 -06:00
parent 283e51c375
commit 55214ce652

View File

@@ -148,7 +148,7 @@ public class RandomEventGUI extends Player{
//Ship Repair //Ship Repair
if (randGenNum == 3 && getHP() < 100) { 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,\n would be willing to repair your ship for $" + itemPrice);
break; break;
} }
else { else {