mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 18:37:23 +08:00
Initial commit
This commit is contained in:
25
module/hard/equipment.py
Normal file
25
module/hard/equipment.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from module.equipment.equipment import Equipment
|
||||
from module.hard.assets import *
|
||||
from module.map.assets import *
|
||||
|
||||
|
||||
class HardEquipment(Equipment):
|
||||
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.FLEET_HARD == 1 else EQUIP_ENTER_2
|
||||
super().equipment_take_on(enter=enter, out=FLEET_PREPARATION, fleet=self.config.FLEET_HARD_EQUIPMENT)
|
||||
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.FLEET_HARD == 1 else EQUIP_ENTER_2
|
||||
super().equipment_take_off(enter=enter, out=FLEET_PREPARATION, fleet=self.config.FLEET_HARD_EQUIPMENT)
|
||||
return True
|
||||
Reference in New Issue
Block a user