fix disguise in listener

This commit is contained in:
Abby
2018-11-14 22:16:37 +09:00
parent 620cc30c5e
commit 78083ab666
@@ -13,8 +13,21 @@ public class ClientEventListener_CODE_SHOW_OPTIONS_SETTING extends ClientEventLi
@Override
public void call(Channel channel, String data) {
SimplePrinter.printNotice("Setting: ");
SimplePrinter.printNotice("1. Sniper Mode (Poker style camouflage)");
SimplePrinter.printNotice("2. Normal Mode");
/*
case 0:
return buildHandStringSharp(pokers);
case 1:
return buildHandStringRounded(pokers);
case 2:
return textOnly(pokers);
case 3:
return textOnlyNoType(pokers);
*/
SimplePrinter.printNotice("1. Card with shape edges (Default)");
SimplePrinter.printNotice("2. Card with rounded edges");
SimplePrinter.printNotice("3. Text Only with types");
SimplePrinter.printNotice("4. Text Only without types");
SimplePrinter.printNotice("Please enter the number of setting (enter [BACK] return options list)");
String line = SimpleWriter.write("setting");
@@ -27,16 +40,10 @@ public class ClientEventListener_CODE_SHOW_OPTIONS_SETTING extends ClientEventLi
}
int choose = Integer.valueOf(line);
if(choose == 1) {
PokerHelper.disguise = true;
SimplePrinter.printNotice("Game mode switch to [Sniper Model]");
if(choose > 0 && choose <= 4){
PokerHelper.pokerPrinterType = choose - 1;
get(ClientEventCode.CODE_SHOW_OPTIONS).call(channel, data);
}else if(choose == 2){
PokerHelper.disguise = false;
SimplePrinter.printNotice("Game mode switch to [Normal Model]");
get(ClientEventCode.CODE_SHOW_OPTIONS).call(channel, data);
}else {
} else {
SimplePrinter.printNotice("Invalid setting, please choose again");
call(channel, data);
}