ElEditors, Interface administrators, Administrators
70,867
edits
(Fix "Useful" not showing up in the table) |
No edit summary |
||
Line 166: | Line 166: | ||
-- Apply Useful modifier. | -- Apply Useful modifier. | ||
if string.find(fval, 'useful') then | if string.find(fval, 'useful') then | ||
fvals[fval] = fvals[fval] * args.useful_penalty | fvals[fval] = fvals[fval] * (args.useful_penalty or args.useful) | ||
end | end | ||
end | end | ||
Line 194: | Line 194: | ||
-- Handling traits | -- Handling traits | ||
-- Useful handled separately | -- Useful handled separately | ||
if inArgs('useful_penalty') then | if inArgs('useful_penalty') or inArgs('useful') then | ||
getTotal(pr .. 'dmg', 'hits_useful', 'total_damage_useful' .. su) | getTotal(pr .. 'dmg', 'hits_useful', 'total_damage_useful' .. su) | ||