AzurLaneAutoScript/module/hard/equipment.py
Air111 2507b0fa6b
Upd: Flagship changing (#3556)
* Upd: Flagship changing asset

* Upd: Equipment enter

* Upd: Fleet detail check

* Refactor: equipment changing

* Upd: asset exercise/EQUIP_ENTER

* Refactor: rename equipment functions

* Fix: avoid GameTooManyClickError when EQUIPMENT_SCROLL disappears

* Upd: [CN] assets EQUIP_1/2/3

* Fix: skip first screenshot in equipment.py
2024-04-19 01:40:40 +08:00

28 lines
1014 B
Python

from module.equipment.equipment_change import EquipmentChange
from module.hard.assets import *
from module.map.assets import *
class HardEquipment(EquipmentChange):
def equipment_take_on(self):
if self.config.FLEET_HARD_EQUIPMENT is None:
return False
if self.equipment_has_take_on:
return False
enter = EQUIP_ENTER_1 if self.config.Hard_HardFleet == 1 else EQUIP_ENTER_2
self.fleet_equipment_take_on_preset(preset_record=self.config.FLEET_HARD_EQUIPMENT, enter=enter,
long_click=True, out=FLEET_PREPARATION)
return True
def equipment_take_off(self):
if self.config.FLEET_HARD_EQUIPMENT is None:
return False
if not self.equipment_has_take_on:
return False
enter = EQUIP_ENTER_1 if self.config.Hard_HardFleet == 1 else EQUIP_ENTER_2
self.fleet_equipment_take_off(enter=enter, long_click=True, out=FLEET_PREPARATION)
return True