Small thing, changed an output of warehouse a bit, shows user its the warehouse they are concerned with.

This commit is contained in:
Siddhant Dewani
2019-02-24 21:34:01 -07:00
parent 5d9c371e84
commit 9f84e23a10

View File

@@ -1,5 +1,7 @@
import java.util.Scanner;
import static javafx.application.Platform.exit;
public class loanShark {
private Player player;
public void setPlayer(Player player) {
@@ -28,9 +30,14 @@ public class loanShark {
player.setDebt(player.getDebt() + loanAsk);
player.setMoney(player.getMoney() + loanAsk);
}
else{
System.out.println("Sorry you cant be loaned that much");
break;
}
String check;
System.out.println("Would you like to do any other business? Y / N?");
check = keyboard.nextLine();
check = keyboard.nextLine();
if(check.equalsIgnoreCase("Y")) {
keepGoing = true;