public class SpecialMoves { static String[] perc = { "10%", "ten percent", "%", "$200", "200", null}; static void inc_tax() { int worth = 0; int com_num = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", perc); worth = Monop.cur_p.money + PropertyFunctions.prop_worth(Monop.cur_p); System.out.print("You were worth $" + worth); worth /= 10; if (com_num > 2) { if (worth < 200) { System.out.println(". Good try, but not quite."); } else if (worth > 200) { Monop.lucky(".\nGood guess. "); } Monop.cur_p.money -= 200; } else { System.out.print(", so you pay $" + worth); if (worth > 200) { System.out.println(" OUCH!!!!."); } else if (worth < 200) { Monop.lucky("\nGood guess. "); } Monop.cur_p.money -= worth; } if (worth == 200) { Monop.lucky("\nIt makes no difference! "); } } static void goto_jail() { Monop.cur_p.loc = Monop.JAIL; } static void lux_tax() { System.out.println("You lose $75"); Monop.cur_p.money -= 75; } static void cc() { CardReader.get_card(InitDeck.deck[0]); } static void chance() { CardReader.get_card(InitDeck.deck[1]); } }