Changes
no edit summary
end
end
end
end
return nil
end
end
return #self._equipment
return #self._equipment
end
end
return nil
end
end
function ShipData:total_space()
function ShipData:total_space()
if not self._equipment then
return nil
end
local total_space = 0
local total_space = 0
local size
local size
ship._class = ShipClass(ship._class)
ship._class = ShipClass(ship._class)
end
end
if not ship._equipment then
if ship._equipment then
for _, slot in ipairs(ship._equipment) do
if slot.equipment then
slot.equipment = Equipment(slot.equipment)
end
end
end
end
end