Changes
no edit summary
local equipment, size, icon, color, equipment_type
local equipment, size, icon, color, equipment_type
if num_of_slots and i > num_of_slots then
if num_of_slots and i > num_of_slots then
equipment, size, icon, color, equipment_type = "- Locked -", "-", "", 0, false
equipment, size, icon, color, equipment_type = "- Locked -", false, "", 0, false
else
else
equipment, size = self._ship:slot(i)
equipment, size = self._ship:slot(i)
equipment = equipment == false and "- Unequipped -" or Formatting:format_stat(equipment)
equipment = equipment == false and "- Unequipped -" or Formatting:format_stat(equipment)
equipment_type = false
equipment_type = false
end
if size == false then
equipment = Formatting:strike(equipment)
end
end
icon = Formatting:format_image{Formatting:format_equipment_icon(icon), caption = Formatting:format_equipment_type(equipment_type)}
icon = Formatting:format_image{Formatting:format_equipment_icon(icon), caption = Formatting:format_equipment_type(equipment_type)}
icon = icon,
icon = icon,
equipment = equipment,
equipment = equipment,
slot_size = Formatting:format_stat(size),
slot_size = Formatting:format_slot_size(size),
color = "whitesmoke", --Formatting:format_equipment_back(color),
color = "whitesmoke", --Formatting:format_equipment_back(color),
extra_style = "", --Formatting:extra_style_background_image(false, color >= 4)
extra_style = "", --Formatting:extra_style_background_image(false, color >= 4)