Anonymous

Module:Traits: Difference between revisions

From Elwiki
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 22: Line 22:


     -- Dictionary for headers
     -- Dictionary for headers
     local prop = { 'MP Usage', 'Cooldown', 'Duration', 'MP Recovery', 'Max Hits', 'Effects' }
     local prop = { 'MP Usage', 'Cooldown', 'Duration', 'MP Recovery', 'Max Hits' }
     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', 'effects', 'chance' }
     local prop_short = { 'mp', 'cd', 'duration', 'mp_recovery', 'hits', 'chance' }


     local STR = {
     local STR = {
Line 197: Line 197:
                         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 203: Line 203:
                         CHANCE = args['chance' .. trait_count] or default_value['chance'],
                         CHANCE = args['chance' .. trait_count] or default_value['chance'],
                         DAMAGE = args['dmg' .. trait_count] or default_value['dmg'],
                         DAMAGE = args['dmg' .. trait_count] or default_value['dmg'],
                          
                         DEF_IGNORE = args['def_ignore' .. trait_count],
                        DEF_IGNORE_PVP = args['pvp_def_ignore' .. trait_count]
                     }
                     }
                 });
                 });