ElEditors, Interface administrators, Administrators
70,868
edits
No edit summary |
No edit summary |
||
Line 148: | Line 148: | ||
if indexOf(trait_name, detail) then | if indexOf(trait_name, detail) then | ||
local short_detail = prop_short[detail_key] | local short_detail = prop_short[detail_key] | ||
local short_detail_disguise = short_detail | local short_detail_disguise = short_detail | ||
Line 162: | Line 153: | ||
if short_detail == 'mp_recovery' then | if short_detail == 'mp_recovery' then | ||
short_detail_disguise = 'mp' | short_detail_disguise = 'mp' | ||
end | |||
local detail_content = args[short_detail_disguise .. trait_count] | |||
local multiplier = detail_content or default_value[short_detail_disguise] or 100 | |||
local suffix = '' | |||
if short_detail_disguise == 'mp' then | |||
suffix = STR.MP | |||
elseif short_detail == 'cd' or short_detail == 'duration' then | |||
suffix = STR.SEC | |||
end | end | ||
Line 180: | Line 180: | ||
local end_value = calcEndValue(base_detail) | local end_value = calcEndValue(base_detail) | ||
if args[short_detail_disguise .. '_enhanced'] ~= nil then | if args[short_detail_disguise .. '_enhanced'] ~= nil then | ||
end_value = end_value .. "<br/>'''" .. frame:expandTemplate{ | end_value = end_value .. "<br/>'''" .. frame:expandTemplate{ | ||
title = 'Tt', | title = 'Tt', | ||
args = { | args = {calcEndValue(args[short_detail_disguise .. '_enhanced']) .. "'''", | ||
"Final Enhanced Skill"} | |||
} | } | ||
end | end |