minor fixes

just some minor text fixes
This commit is contained in:
Vikramb987
2019-02-18 17:59:13 -07:00
committed by GitHub
parent bd4ddd767a
commit be8eddaa5c

View File

@@ -15,7 +15,7 @@ public class TaipanShop {
private int silkPrice = 1600; private int silkPrice = 1600;
private int armsPrice = 160; private int armsPrice = 160;
private int generalPrice = 8; private int generalPrice = 8;
private int location = 2; private int location = 1;
private int guns = 0; private int guns = 0;
public void updatePrices(){ public void updatePrices(){
@@ -300,11 +300,11 @@ public class TaipanShop {
} else if (response.equalsIgnoreCase("S")) { } else if (response.equalsIgnoreCase("S")) {
boolean notDone2 = true; 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) { while (notDone2) {
response = input.nextLine(); response = input.nextLine();
if (response.equalsIgnoreCase("O")) { 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) { while (notDone2) {
int num = input.nextInt(); int num = input.nextInt();
if (num <= opiumHeld && num >= 0) { if (num <= opiumHeld && num >= 0) {
@@ -374,3 +374,4 @@ public class TaipanShop {
shop.shop(); shop.shop();
} }
} }