Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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) {
|
||||||
@@ -373,4 +373,5 @@ public class TaipanShop {
|
|||||||
TaipanShop shop = new TaipanShop();
|
TaipanShop shop = new TaipanShop();
|
||||||
shop.shop();
|
shop.shop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user