Content deleted Content added
S.A. Julio (talk | contribs) add |
S.A. Julio (talk | contribs) add |
||
Line 151:
+ OTloss_points*OTlosses + loss_points*losses
+ PKwin_points*PKwins + PKloss_points*PKlosses + s_pts
--Some sports use draw as well
local win_perc = mm._precision_format((2*wins + draws) / (2*matches), 3)
if matches == 0 then
-- Escape for zero matches
win_perc = '—'
elseif losses > 0 then
-- Drop the leading zero (from the string)
win_perc = string.sub(win_perc,2,string.len(win_perc))
end
-- Comparison of for against
|