From a15e2ddc1ec8f1887ad4d53901102e1386665247 Mon Sep 17 00:00:00 2001 From: pur1fy <2274916027@qq.com> Date: Sat, 24 Aug 2024 00:59:53 +0800 Subject: [PATCH] arena choose component number --- core/default_config.py | 1 + module/arena.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/default_config.py b/core/default_config.py index 291174b2..1a53378a 100644 --- a/core/default_config.py +++ b/core/default_config.py @@ -299,6 +299,7 @@ "open_emulator_stat": false, "emulator_wait_time": "180", "ArenaLevelDiff": 0, + "ArenaComponentNumber": 1, "maxArenaRefreshTimes": 10, "createPriority": "花>Mo>情人节>果冻>色彩>灿烂>光芒>玲珑>白金>黄金>铜>白银>金属>隐然", "use_acceleration_ticket": false, diff --git a/module/arena.py b/module/arena.py index da5f7181..9d7e01bf 100644 --- a/module/arena.py +++ b/module/arena.py @@ -12,7 +12,7 @@ def implement(self): else: self.logger.info("TICKETS: " + str(tickets)) choose_enemy(self) - choice = 1 + choice = self.config['ArenaComponentNumber'] x = 844 y = [261, 414, 581] y = y[choice - 1]