ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary Tag: Manual revert |
No edit summary |
||
Line 22: | Line 22: | ||
-- 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', 'Effects' } | ||
if is_rose then | if is_rose then | ||
for k, v in ipairs(prop) do | for k, v in ipairs(prop) do | ||
Line 29: | Line 29: | ||
end | end | ||
local prop_short = { 'mp', 'cd', 'duration', 'mp_recovery', 'hits', 'chance' } | local prop_short = { 'mp', 'cd', 'duration', 'mp_recovery', 'hits', 'effects', 'chance' } | ||
local STR = { | local STR = { | ||
Line 51: | Line 51: | ||
local details = { { STR.LIGHT, STR.CRITICAL, STR.REVERSED }, | local details = { { STR.LIGHT, STR.CRITICAL, STR.REVERSED }, | ||
{ STR.HEAVY, STR.HASTE, STR.REGEN2, STR.RUTHLESS, STR.POWERFUL, STR.REVERSED }, { STR.KB1 }, | { STR.HEAVY, STR.HASTE, STR.REGEN2, STR.RUTHLESS, STR.POWERFUL, STR.REVERSED }, { STR.KB1 }, | ||
{ STR.REGEN1 }, { STR.USEFUL } } | { STR.REGEN1 }, { STR.USEFUL }, {STR.KB2} } | ||
-- Default values | -- Default values | ||
Line 174: | Line 174: | ||
unnamed[1], | unnamed[1], | ||
unnamed[2], | unnamed[2], | ||
MP = MP_ARG, | MP = args['def_ignore' .. trait_count] ~= nil and 'Energy' or MP_ARG, | ||
ECP = ECP_ARG, | ECP = ECP_ARG, | ||
CD = args['cd' .. trait_count] or default_value['cd'], | CD = args['cd' .. trait_count] or default_value['cd'], | ||
Line 212: | Line 212: | ||
local function calcEndValue(base) | local function calcEndValue(base) | ||
local end_value; | local end_value; | ||
if short_detail = | if tonumber(short_detail) ~= nil then | ||
end_value = base or | end_value = base or -1 | ||
else | else | ||
end_value = (tonumber(multiplier) / 100) * tonumber(base or | end_value = (tonumber(multiplier) / 100) * tonumber(base or -1) | ||
end | end | ||
if tonumber(end_value) ~= nil and tonumber(end_value) < | if tonumber(end_value) ~= nil and tonumber(end_value) < 0 then | ||
end_value = '-' | end_value = '-' | ||
end | end |