Changes

no edit summary
Line 23: Line 23:  
_stat_1 = "%d",
 
_stat_1 = "%d",
 
_stat_2 = "%d (%d)",
 
_stat_2 = "%d (%d)",
_blueprint = " [[Blueprint.png|36px]]",
   
_slot_template = [[|-
 
_slot_template = [[|-
| align=center colspan="3" | ${equipment}
+
| align=center colspan="3" | ${icon} ${equipment}
 
| align=center | ${space}
 
| align=center | ${space}
 
]],
 
]],
Line 168: Line 167:  
local slots = {}
 
local slots = {}
 
for i = 1, math.max(4, 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, {icon = ship:equipment_icon(i), equipment = ship:equipment(i), space = ship:space(i)}))
 
end
 
end
 
return table.concat(slots)
 
return table.concat(slots)
Anonymous user