Editing Module:Infobox itemGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 28: | Line 28: | ||
local STATUS_FMT = "[[{{#invoke:Lang|get_string|Citadel_%s}}]]" | local STATUS_FMT = "[[{{#invoke:Lang|get_string|Citadel_%s}}]]" | ||
.. " [[{{#invoke:Lang|get_string|Citadel_StatusEffect}}]]" | .. " [[{{#invoke:Lang|get_string|Citadel_StatusEffect}}]]" | ||
-- Label key remapping table (replaces if/elseif chain) | -- Label key remapping table (replaces if/elseif chain) | ||
local LABEL_KEY_REMAP = { | local LABEL_KEY_REMAP = { | ||
BuildUpPerShot = "BuildupPerShot", | |||
DotDuration = "DOTDuration", | DotDuration = "DOTDuration", | ||
} | } | ||
| Line 499: | Line 495: | ||
for _, prop_obj in ipairs(prop_list or {}) do | for _, prop_obj in ipairs(prop_list or {}) do | ||
local key = prop_obj.Key | local key = prop_obj.Key | ||
if not seen | if not seen[key] and ( | ||
key:match("^StatusEffect") | key:match("^StatusEffect") | ||
or is_property_in_lang_data(key, prop_obj.LocTokenOverride) | or is_property_in_lang_data(key, prop_obj.LocTokenOverride) | ||
| Line 555: | Line 551: | ||
if section.Type == "Innate" then | if section.Type == "Innate" then | ||
for _, obj in ipairs(section.Main or {}) do | for _, obj in ipairs(section.Main or {}) do | ||
if | if is_property_in_lang_data(obj.Key, obj.LocTokenOverride) then | ||
local val | local val | ||
if enhanced then | if enhanced then | ||
| Line 577: | Line 573: | ||
end | end | ||
for _, obj in ipairs(section.Alt or {}) do | for _, obj in ipairs(section.Alt or {}) do | ||
if | if is_property_in_lang_data(obj.Key, obj.LocTokenOverride) then | ||
local val | local val | ||
if enhanced then | if enhanced then | ||
| Line 678: | Line 674: | ||
for _, prop_obj in ipairs(section.Main or {}) do | for _, prop_obj in ipairs(section.Main or {}) do | ||
local key = prop_obj.Key | local key = prop_obj.Key | ||
if not main_seen | if not main_seen[key] and ( | ||
key:match("^StatusEffect") | key:match("^StatusEffect") | ||
or is_property_in_lang_data(key, prop_obj.LocTokenOverride) | or is_property_in_lang_data(key, prop_obj.LocTokenOverride) | ||
| Line 698: | Line 694: | ||
local key = prop_obj.Key | local key = prop_obj.Key | ||
-- Skip keys already emitted as main stats | -- Skip keys already emitted as main stats | ||
if not main_seen[key] and not alt_seen | if not main_seen[key] and not alt_seen[key] and ( | ||
key:match("^StatusEffect") | key:match("^StatusEffect") | ||
or is_property_in_lang_data(key, prop_obj.LocTokenOverride) | or is_property_in_lang_data(key, prop_obj.LocTokenOverride) | ||