Small thing, changed an output of warehouse a bit, shows user its the warehouse they are concerned with.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
import static javafx.application.Platform.exit;
|
||||||
|
|
||||||
public class loanShark {
|
public class loanShark {
|
||||||
private Player player;
|
private Player player;
|
||||||
public void setPlayer(Player player) {
|
public void setPlayer(Player player) {
|
||||||
@@ -28,9 +30,14 @@ public class loanShark {
|
|||||||
player.setDebt(player.getDebt() + loanAsk);
|
player.setDebt(player.getDebt() + loanAsk);
|
||||||
player.setMoney(player.getMoney() + loanAsk);
|
player.setMoney(player.getMoney() + loanAsk);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
System.out.println("Sorry you cant be loaned that much");
|
||||||
|
break;
|
||||||
|
}
|
||||||
String check;
|
String check;
|
||||||
System.out.println("Would you like to do any other business? Y / N?");
|
System.out.println("Would you like to do any other business? Y / N?");
|
||||||
check = keyboard.nextLine();
|
check = keyboard.nextLine();
|
||||||
|
check = keyboard.nextLine();
|
||||||
|
|
||||||
if(check.equalsIgnoreCase("Y")) {
|
if(check.equalsIgnoreCase("Y")) {
|
||||||
keepGoing = true;
|
keepGoing = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user