AzurLaneAutoScript/module/hard/equipment.py

28 lines
1014 B
Python
Raw Permalink Normal View History

from module.equipment.equipment_change import EquipmentChange
2020-03-29 01:22:46 +08:00
from module.hard.assets import *
from module.map.assets import *
class HardEquipment(EquipmentChange):
2020-03-29 01:22:46 +08:00
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)
2020-03-29 01:22:46 +08:00
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)
2020-03-29 01:22:46 +08:00
return True