mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-02 09:34:09 +08:00
Add: Basic hospital event
This commit is contained in:
25
module/event_hospital/hospital.py
Normal file
25
module/event_hospital/hospital.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user