Module:ItemData/nav: Difference between revisionsGive feedback
Refactored for performance optimization |
Made active items table use the same item category background colors as the item navbox does |
||
| Line 255: | Line 255: | ||
for _, item in ipairs(active_items) do | for _, item in ipairs(active_items) do | ||
local bg_color | local bg_color = util_module.get_slot_color(item.slot) | ||
local item_type | |||
if item.slot == "Armor" then | |||
item_type = "Armor" | |||
elseif item.slot == "Tech" then | |||
item_type = "Tech" | |||
else | |||
item_type = "Weapon" | |||
end | |||
local row = string.format([=[ | local row = string.format([=[ | ||