Merge remote-tracking branch 'origin/master'

This commit is contained in:
2019-02-18 18:38:24 -07:00

View File

@@ -15,7 +15,7 @@ public class TaipanShop {
private int silkPrice = 1600;
private int armsPrice = 160;
private int generalPrice = 8;
private int location = 2;
private int location = 1;
private int guns = 0;
public void updatePrices(){
@@ -300,11 +300,11 @@ public class TaipanShop {
} else if (response.equalsIgnoreCase("S")) {
boolean notDone2 = true;
System.out.println("What do you wish me to sell, " + name + "? (You have " + opiumHeld + ")");
System.out.println("What do you wish me to sell, " + name + "?");
while (notDone2) {
response = input.nextLine();
if (response.equalsIgnoreCase("O")) {
System.out.println("\nHow much Opium shall I sell, " + name + "?");
System.out.println("\nHow much Opium shall I sell, " + name + "? (You have " + opiumHeld + ")");
while (notDone2) {
int num = input.nextInt();
if (num <= opiumHeld && num >= 0) {
@@ -373,4 +373,5 @@ public class TaipanShop {
TaipanShop shop = new TaipanShop();
shop.shop();
}
}
}