Minor changes
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user