ElEditors, Interface administrators, Administrators
70,868
edits
No edit summary |
No edit summary |
||
Line 59: | Line 59: | ||
i = i + 1 | i = i + 1 | ||
end | end | ||
end | |||
if string.find(fval, 'useful') then | |||
fvals[fval] = fvals[fval] * args.useful_penalty | |||
end | end | ||
table.insert(vars, var(fval..'_damage', fvals[fval])) | table.insert(vars, var(fval..'_damage', fvals[fval])) | ||
Line 68: | Line 71: | ||
if inArgsStarts('avg_hits') then | if inArgsStarts('avg_hits') then | ||
getTotal('dmg', 'avg_hits', 'average') | getTotal('dmg', 'avg_hits', 'average') | ||
end | |||
if inArgsStarts('awk_dmg') then | |||
getTotal('awk_dmg', 'awk_hits', 'total_awk') | |||
end | |||
if inArgsStarts('avg_awk_hits') then | |||
getTotal('awk_dmg', 'avg_awk_hits', 'average_awk') | |||
end | end | ||
Line 73: | Line 84: | ||
if inArgs('useful_penalty') then | if inArgs('useful_penalty') then | ||
getTotal('dmg', 'hits_useful', 'total_useful') | getTotal('dmg', 'hits_useful', 'total_useful') | ||
end | end | ||