

def __init__(self, ship_id=None, ship_api_id=None):
    super().__init__()
    ship = Ship.get(id=ship_id, ship_api_id=ship_api_id)
    self.ship = ship
    self.stats = ship.base_stats.copy()
    self.current_ammo = self.stats.ammo
    self.current_fuel = self.stats.fuel
    self.current_hp = self.stats.hp
    self.equipments = [KanmusuEquipment(slot=i) for i in range(ship.maxslots)]
    self.modernized_stats = Stats(firepower=0, torpedo=0, antiair=0, armour=0, luck=0)

dataset/ETHPy150Open KanColleTool/kcsrv/db/ships.py Kanmusu.__init__/original