-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08b68e5
commit 5889768
Showing
18 changed files
with
434 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
## 最近更新 | ||
|
||
### 新功能 | ||
|
||
- 新增觉醒副本 | ||
|
||
### 优化 | ||
|
||
- 移除更新升级过程中的`任意键` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,61 @@ | ||
from . import ( | ||
yuhun, # 1 | ||
yongshengzhihai, # 2 | ||
yeyuanhuo, # 3 | ||
yuling, # 4 | ||
jiejietupo, # 5&6 | ||
daoguantupo, # 7 | ||
zhaohuan, # 8 | ||
baiguiyexing, # 9 | ||
huodong, # 10 | ||
rilun, # 11 | ||
tansuo, # 12 | ||
qiling, #13 | ||
xuanshangfengyin | ||
) | ||
from .baiguiyexing import BaiGuiYeXing | ||
from .daoguantupo import DaoGuanTuPo | ||
from .huodong import HuoDong | ||
from .jiejietupo import JieJieTuPo, JieJieTuPoGeRen, JieJieTuPoYinYangLiao | ||
from .juexing import JueXing | ||
from .qiling import QiLing | ||
from .rilun import RiLun | ||
from .tansuo import TanSuo | ||
from .xuanshangfengyin import XuanShangFengYin, task_xuanshangfengyin | ||
from .yeyuanhuo import YeYuanHuo | ||
from .yongshengzhihai import YongShengZhiHai, YongShengZhiHaiTeam | ||
from .yuhun import YuHun, YuHunSingle, YuHunTeam | ||
from .yuling import YuLing | ||
from .zhaohuan import ZhaoHuan | ||
from .utils import FightResource | ||
|
||
__all__ = [ | ||
"FightResource", | ||
"BaiGuiYeXing", | ||
"DaoGuanTuPo", | ||
"HuoDong", | ||
# "JieJieTuPo", | ||
"JieJieTuPoGeRen", | ||
"JieJieTuPoYinYangLiao", | ||
"JueXing", | ||
"QiLing", | ||
"RiLun", | ||
"TanSuo", | ||
# "XuanShangFengYin", | ||
"task_xuanshangfengyin", | ||
"YeYuanHuo", | ||
"YuLing", | ||
"YongShengZhiHai", | ||
"YongShengZhiHaiTeam", | ||
"YuHun", | ||
"YuHunSingle", | ||
"YuHunTeam", | ||
"ZhaoHuan", | ||
"get_package_resource_list", | ||
] | ||
|
||
|
||
def get_package_resource_list(): | ||
print("get_package_resource_list") | ||
return [ | ||
FightResource, | ||
BaiGuiYeXing, | ||
DaoGuanTuPo, | ||
HuoDong, | ||
JieJieTuPo, | ||
JueXing, | ||
QiLing, | ||
RiLun, | ||
TanSuo, | ||
XuanShangFengYin, | ||
YeYuanHuo, | ||
YongShengZhiHai, | ||
YuHun, | ||
YuLing, | ||
ZhaoHuan | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# juexing.py | ||
"""觉醒副本""" | ||
|
||
from ..utils.decorator import log_function_call | ||
from ..utils.event import event_thread | ||
from ..utils.function import ( | ||
RESOURCE_FIGHT_PATH, | ||
check_click, | ||
check_scene_multiple_once, | ||
click, | ||
finish_random_left_right, | ||
random_sleep | ||
) | ||
from ..utils.log import logger | ||
from .utils import Package | ||
|
||
|
||
class JueXing(Package): | ||
"""觉醒副本""" | ||
scene_name = "觉醒副本" | ||
resource_path = "juexing" | ||
resource_list = [ | ||
"title", # 标题 | ||
] | ||
description = "单人觉醒副本" | ||
|
||
@log_function_call | ||
def __init__(self, n: int = 0) -> None: | ||
super().__init__(n) | ||
|
||
@log_function_call | ||
def start(self): | ||
"""挑战开始""" | ||
check_click(f"{RESOURCE_FIGHT_PATH}/start_single") | ||
|
||
def run(self): | ||
self.current_resource_list = [ | ||
f"{self.resource_path}/title", | ||
f"{RESOURCE_FIGHT_PATH}/start_single", | ||
f"{RESOURCE_FIGHT_PATH}/finish", | ||
f"{RESOURCE_FIGHT_PATH}/fail", | ||
f"{RESOURCE_FIGHT_PATH}/victory", | ||
] | ||
_flag_title_msg: bool = True | ||
logger.num(f"0/{self.max}") | ||
self.log_current_scene_list() | ||
|
||
while self.n < self.max: | ||
if event_thread.is_set(): | ||
return | ||
scene, coor = check_scene_multiple_once(self.current_resource_list) | ||
if scene is None: | ||
continue | ||
scene = self.scene_handle(scene) | ||
|
||
match scene: | ||
case "title": | ||
logger.scene(self.scene_name) | ||
_flag_title_msg = False | ||
self.start() | ||
case "start_single": | ||
click(coor) | ||
case "fail": | ||
logger.ui("失败,需要手动处理", "warn") | ||
break | ||
case "victory": | ||
logger.ui("胜利") | ||
case "finish": | ||
finish_random_left_right() | ||
self.done() | ||
case _: | ||
if _flag_title_msg: | ||
logger.ui("请检查游戏场景", "warn") | ||
_flag_title_msg = False | ||
random_sleep() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.