Minor changes

This commit is contained in:
2019-04-07 18:28:32 -06:00
parent 26064ebac3
commit 3f68202bb5
2 changed files with 5 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ public class TaipanShopLogic extends Player {
setSilkPrice((rand.nextInt(201) + 60) * 10); setSilkPrice((rand.nextInt(201) + 60) * 10);
setArmsPrice((rand.nextInt(21) + 6) * 10); setArmsPrice((rand.nextInt(21) + 6) * 10);
setGeneralPrice((rand.nextInt(17) + 4)); setGeneralPrice((rand.nextInt(17) + 4));
// there is a 10% chance that the price of an item is increased/decreased beyond its regular range. // there is a 10% chance that the price of an item is increased/decreased beyond its regular range.
if (value < 8) { if (value < 8) {
if (value < 2) { if (value < 2) {

View File

@@ -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 * 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. * 2) guns and no cash/debt.
*/ */
public void start() public void start() {
{
Scanner userInput = new Scanner(System.in); Scanner userInput = new Scanner(System.in);
System.out.println("Taipan, \nWhat will you name your firm:"); System.out.println("Taipan, \nWhat will you name your firm:");
setName(userInput.nextLine()); 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 "); 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(); int input = userInput.nextInt();
if (input == 1) if (input == 1) {
{
setMoney(400); setMoney(400);
setDebt(5000); setDebt(5000);
} }
if (input == 2) if (input == 2) {
{
setGuns(5); setGuns(5);
} }
// purely for testing purposes. // purely for testing purposes.
if(getName().equalsIgnoreCase("Vikram")){ if (getName().equalsIgnoreCase("Vikram")) {
setMoney(999999999); setMoney(999999999);
setBank(999999999); setBank(999999999);
setGuns(999); setGuns(999);