ElEditors, Interface administrators, Administrators
70,868
edits
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
getTotal('dmg', 'dmg', 'hits', 'total') | getTotal('dmg', 'dmg', 'hits', 'total') | ||
getTotal('hits_useful', 'dmg', 'hits_useful', 'total_useful') | |||
-- -- total damage only | -- -- total damage only | ||
-- if string.starts(k, 'dmg') then | -- if string.starts(k, 'dmg') then | ||
Line 75: | Line 76: | ||
end | end | ||
table.insert(vars, var('total_damage', fvals.total)) | table.insert(vars, var('total_damage', fvals.total)) | ||
if inArgs('useful_penalty') then | |||
table.insert(vars, var('total_damage_useful', total_useful * args.useful_penalty)) | |||
end | |||
-- if inArgs('heavy') then | -- if inArgs('heavy') then | ||
-- table.insert(vars, var('total_damage_heavy', heavy(total))) | -- table.insert(vars, var('total_damage_heavy', heavy(total))) |