Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: problem: event.py不会识别掉落数, 对胖次活动的判断会保持True #161

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autowsgr/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.4.0'
__version__ = '1.4.1'
5 changes: 3 additions & 2 deletions autowsgr/game/get_game_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ def get_loot_and_ship(timer: Timer):
try:
timer.got_loot_num = ret.get('loot')
if timer.got_loot_num is None:
timer.can_get_loot = False
timer.got_loot_num = 0
else:
timer.can_get_loot = True
except:
timer.logger.warning('赋值给got_loot_num失败')
timer.can_get_loot = False
timer.got_loot_num = 0

timer.logger.info(f'已掉落舰船:{timer.got_ship_num}')
if timer.can_get_loot:
timer.logger.info(f'已掉落胖次:{timer.got_loot_num}')
Expand Down
2 changes: 1 addition & 1 deletion autowsgr/timer/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, config: UserConfig, logger: Logger) -> None:
self.got_ship_num = 0 # 当天已掉落的船
self.got_loot_num = 0 # 当天已掉落的胖次
self.quick_repaired_cost = 0 # 消耗快修数量
self.can_get_loot = True # 是否可以捞胖次
self.can_get_loot = False # 是否可以捞胖次
"""
以上时能用到的
以下是暂时用不到的
Expand Down
Loading