增加兼容性

This commit is contained in:
2023-09-22 16:30:20 +08:00
parent d6082fc091
commit bd3a90ea49

View File

@@ -47,7 +47,7 @@ public class BaseAction {
} }
private void sendNewRequest(String cmdStr, FindType type) throws InterruptedException { private void sendNewRequest(String cmdStr, FindType type) throws InterruptedException {
Thread.sleep(800); Thread.sleep(1800);
String next = ""; String next = "";
if (type == FindType.ALL){ if (type == FindType.ALL){
next = target.get(cmdStr); next = target.get(cmdStr);
@@ -91,7 +91,7 @@ public class BaseAction {
} }
private void fight() throws InterruptedException { private void fight() throws InterruptedException {
if (!target.containsKey("雁翎刀法")){ if (!target.containsKey("普通攻击")){
return; return;
} }
while (!"战斗已经结束!".equals(currentMsg)){ while (!"战斗已经结束!".equals(currentMsg)){
@@ -101,10 +101,10 @@ public class BaseAction {
if (currentMsg.contains("九霄美狐临死前说")){ if (currentMsg.contains("九霄美狐临死前说")){
break; break;
} }
if (target.containsKey("雁翎刀法")){ if (target.containsKey("普通攻击")){
String next = target.get("雁翎刀法"); String next = target.get("普通攻击");
if (next != null) { if (next != null) {
sendNewRequest("雁翎刀法",FindType.ALL); sendNewRequest("普通攻击",FindType.ALL);
} }
} }
} }
@@ -124,7 +124,7 @@ public class BaseAction {
String [] needThings = new String[]{ String [] needThings = new String[]{
"山谷灵芝","毒蛇胆","食人怪鱼鱼鳞","食人谷","魄力丹","蛇筋","","训练书","必杀技","冰珠","冰魄珠","太尉秘图","龙鳞","大白菜", "山谷灵芝","毒蛇胆","食人怪鱼鱼鳞","食人谷","魄力丹","蛇筋","","训练书","必杀技","冰珠","冰魄珠","太尉秘图","龙鳞","大白菜",
"牛皮","好汉印","","负重","","星光","黑狼毛","虎骨","黄金虎骨" "牛皮","好汉印","","负重","","星光","黑狼毛","虎骨","黄金虎骨","血印","赤霄","好汉"
}; };
} }