1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-17 05:15:36 +00:00

Placement points added need to test

This commit is contained in:
2015-11-17 16:39:56 +00:00
parent 1aee738eb5
commit da6b95fed8
2 changed files with 130 additions and 1 deletions

View File

@@ -16,7 +16,11 @@ class Wrestler < ActiveRecord::Base
def totalTeamPoints
points = 0.0
points = points + (poolWins.size * 1) + (pinWins.size * 2) + (techWins.size * 1.5) + (majorWins.size * 1)
points = points + (poolWins.size * 1) + (pinWins.size * 2) + (techWins.size * 1.5) + (majorWins.size * 1) + placementPoints
end
def placementPoints
PoolBracketTeamPointsCalc.new(self).calcPoints
end
def totalDeductedPoints