ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
function p.main(frame) | function p.main(frame) | ||
local args = getArgs(frame); | local args = getArgs(frame); | ||
local is_rose = args[1] == 'Rose'; | |||
-- Argument init | -- Argument init | ||
Line 22: | Line 23: | ||
-- Dictionary for headers | -- Dictionary for headers | ||
local prop = {'MP Usage', 'Cooldown', 'Duration', 'MP Recovery', 'Max Hits'} | local prop = {'MP Usage', 'Cooldown', 'Duration', 'MP Recovery', 'Max Hits'} | ||
if is_rose then | |||
prop[1] = 'ECP Usage' | |||
end | |||
local prop_short = {'mp', 'cd', 'duration', 'mp_recovery', 'hits', 'chance'} | local prop_short = {'mp', 'cd', 'duration', 'mp_recovery', 'hits', 'chance'} | ||
Line 39: | Line 43: | ||
USEFUL = 'Useful', | USEFUL = 'Useful', | ||
SEC = ' Seconds', | SEC = ' Seconds', | ||
MP = ' MP' | MP = ' MP', | ||
ECP = ' ECP' | |||
} | } | ||
Line 130: | Line 135: | ||
default_value['mp_recovery']; | default_value['mp_recovery']; | ||
if | if is_rose then | ||
unnamed[2] = unnamed[1] or args['mp' .. trait_count] | unnamed[2] = unnamed[1] or args['mp' .. trait_count] | ||
unnamed[1] = 'ECP' | unnamed[1] = 'ECP' | ||
Line 167: | Line 172: | ||
if short_detail_improved == 'mp' then | if short_detail_improved == 'mp' then | ||
suffix = STR.MP | suffix = STR.MP | ||
if is_rose then | |||
suffix = STR.ECP | |||
end | |||
elseif short_detail == 'cd' or short_detail == 'duration' then | elseif short_detail == 'cd' or short_detail == 'duration' then | ||
suffix = STR.SEC | suffix = STR.SEC |