From 3f68202bb521c9489830b9aa995b0e70eb2037df Mon Sep 17 00:00:00 2001 From: Solargale Date: Sun, 7 Apr 2019 18:28:32 -0600 Subject: [PATCH] Minor changes --- src/logic/TaipanShopLogic.java | 2 +- src/text/StartText.java | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/logic/TaipanShopLogic.java b/src/logic/TaipanShopLogic.java index 249c1b9..6bf7d90 100644 --- a/src/logic/TaipanShopLogic.java +++ b/src/logic/TaipanShopLogic.java @@ -29,7 +29,7 @@ public class TaipanShopLogic extends Player { setSilkPrice((rand.nextInt(201) + 60) * 10); setArmsPrice((rand.nextInt(21) + 6) * 10); setGeneralPrice((rand.nextInt(17) + 4)); - + // there is a 10% chance that the price of an item is increased/decreased beyond its regular range. if (value < 8) { if (value < 2) { diff --git a/src/text/StartText.java b/src/text/StartText.java index 6564da7..828fa87 100644 --- a/src/text/StartText.java +++ b/src/text/StartText.java @@ -15,25 +15,22 @@ public class StartText extends Player { * Initializes the game by asking for your name and if you would like to start with either: 1) money and a debt or * 2) guns and no cash/debt. */ - public void start() - { + public void start() { Scanner userInput = new Scanner(System.in); System.out.println("Taipan, \nWhat will you name your firm:"); setName(userInput.nextLine()); System.out.println("Do you want to start . . .\n\t1) With cash (and a debt)\n\t\t\t>> or <<\n\t" + "2) With five guns and no cash (But no debt!)?\n "); int input = userInput.nextInt(); - if (input == 1) - { + if (input == 1) { setMoney(400); setDebt(5000); } - if (input == 2) - { + if (input == 2) { setGuns(5); } // purely for testing purposes. - if(getName().equalsIgnoreCase("Vikram")){ + if (getName().equalsIgnoreCase("Vikram")) { setMoney(999999999); setBank(999999999); setGuns(999);