From be8eddaa5c81793eeb9d5bd24ec8e8bc4c060db6 Mon Sep 17 00:00:00 2001 From: Vikramb987 <47336882+Vikramb987@users.noreply.github.com> Date: Mon, 18 Feb 2019 17:59:13 -0700 Subject: [PATCH] minor fixes just some minor text fixes --- src/TaipanShop.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/TaipanShop.java b/src/TaipanShop.java index aa377e7..b62aa4c 100644 --- a/src/TaipanShop.java +++ b/src/TaipanShop.java @@ -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(); } -} \ No newline at end of file +} +