2024-04-19 01:40:40 +08:00
|
|
|
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 *
|
|
|
|
|
|
|
|
|
2024-04-19 01:40:40 +08:00
|
|
|
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
|
|
|
|
|
2024-04-19 01:40:40 +08:00
|
|
|
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
|
|
|
|
|
2024-04-19 01:40:40 +08:00
|
|
|
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
|