1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 13:27:20 +08:00
Files
AzurLaneAutoScript/module/event_hospital/hospital.py
2025-03-28 00:22:21 +08:00

26 lines
667 B
Python

from module.event_hospital.clue import HospitalClue
from module.event_hospital.combat import HospitalCombat
from module.logger import logger
class Hospital(HospitalClue, HospitalCombat):
def loop_invest(self):
"""
Do all invest in page
"""
while 1:
logger.hr('Loop invest', level=2)
invest = next(self.iter_invest(), None)
if invest is None:
logger.info('No more invest')
break
self.invest_enter(invest)
self.hospital_combat()
if __name__ == '__main__':
self = Hospital('alas')
self.device.screenshot()
self.loop_invest()