|
@@ -13,7 +13,7 @@ from tasks.Component.SwitchSoul.switch_soul import SwitchSoul
|
|
|
from tasks.GameUi.game_ui import GameUi
|
|
from tasks.GameUi.game_ui import GameUi
|
|
|
from tasks.GameUi.page import page_main, page_soul_zones, page_shikigami_records
|
|
from tasks.GameUi.page import page_main, page_soul_zones, page_shikigami_records
|
|
|
from tasks.Orochi.assets import OrochiAssets
|
|
from tasks.Orochi.assets import OrochiAssets
|
|
|
-from tasks.Orochi.config import Orochi, UserStatus
|
|
|
|
|
|
|
+from tasks.Orochi.config import Orochi, UserStatus, Layer
|
|
|
from module.logger import logger
|
|
from module.logger import logger
|
|
|
from module.exception import TaskEnd
|
|
from module.exception import TaskEnd
|
|
|
|
|
|
|
@@ -32,6 +32,8 @@ class ScriptTask(GeneralBattle, GeneralInvite, GeneralBuff, GeneralRoom, GameUi,
|
|
|
self.ui_goto(page_shikigami_records)
|
|
self.ui_goto(page_shikigami_records)
|
|
|
self.run_switch_soul_by_name(self.config.orochi.switch_soul.group_name,
|
|
self.run_switch_soul_by_name(self.config.orochi.switch_soul.group_name,
|
|
|
self.config.orochi.switch_soul.team_name)
|
|
self.config.orochi.switch_soul.team_name)
|
|
|
|
|
+ # 根据选层切换御魂
|
|
|
|
|
+ self.orochi_switch_soul()
|
|
|
|
|
|
|
|
limit_count = self.config.orochi.orochi_config.limit_count
|
|
limit_count = self.config.orochi.orochi_config.limit_count
|
|
|
limit_time = self.config.orochi.orochi_config.limit_time
|
|
limit_time = self.config.orochi.orochi_config.limit_time
|
|
@@ -471,6 +473,26 @@ class ScriptTask(GeneralBattle, GeneralInvite, GeneralBuff, GeneralRoom, GameUi,
|
|
|
if random_click_swipt_enable:
|
|
if random_click_swipt_enable:
|
|
|
self.random_click_swipt()
|
|
self.random_click_swipt()
|
|
|
|
|
|
|
|
|
|
+ def orochi_switch_soul(self) -> None:
|
|
|
|
|
+ # 判断是否开启根据选层切换御魂
|
|
|
|
|
+ orochi_switch_soul = self.config.orochi.switch_soul
|
|
|
|
|
+ if not orochi_switch_soul.auto_switch_soul:
|
|
|
|
|
+ return
|
|
|
|
|
+
|
|
|
|
|
+ group_team: str = None
|
|
|
|
|
+ layer = self.config.orochi.orochi_config.layer
|
|
|
|
|
+ match layer:
|
|
|
|
|
+ # case Layer.TEN:
|
|
|
|
|
+ # group_team = orochi_switch_soul.ten_switch
|
|
|
|
|
+ case Layer.ELEVEN:
|
|
|
|
|
+ group_team = orochi_switch_soul.eleven_switch
|
|
|
|
|
+ case Layer.TWELVE:
|
|
|
|
|
+ group_team = orochi_switch_soul.twelve_switch
|
|
|
|
|
+
|
|
|
|
|
+ if orochi_switch_soul.auto_switch_soul:
|
|
|
|
|
+ self.ui_get_current_page()
|
|
|
|
|
+ self.ui_goto(page_shikigami_records)
|
|
|
|
|
+ self.run_switch_soul(group_team)
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|