Changes

Always show at least 4 slots, fix space icon
Line 75: Line 75:  
|-
 
|-
 
| colspan="3" style="text-align: center; background-color: LightSkyBlue;"|'''Stock Equipment'''
 
| colspan="3" style="text-align: center; background-color: LightSkyBlue;"|'''Stock Equipment'''
| style="text-align: center; background-color: LightSkyBlue;" | '''{{Aircraft}}Space'''
+
| style="text-align: center; background-color: LightSkyBlue;" | '''${aircraft_icon} Space'''
 
|-
 
|-
 
${slot_details}]],
 
${slot_details}]],
Line 159: Line 159:  
function ShipInfoKai:slot_details(ship)
 
function ShipInfoKai:slot_details(ship)
 
local slots = {}
 
local slots = {}
for i = 1, ship:slots() do
+
for i = 1, math.max(4, ship:slots()) do
 
table.insert(slots, format(self._slot_template, {equipment = ship:equipment(i), space = ship:space(i)}))
 
table.insert(slots, format(self._slot_template, {equipment = ship:equipment(i), space = ship:space(i)}))
 
end
 
end
Anonymous user