playerstate to prop
This commit is contained in:
@@ -17,13 +17,13 @@ class SpinnerEvent(Event):
|
||||
self.scorePoints()
|
||||
|
||||
def scorePoints(self):
|
||||
playerState = self.playerState()
|
||||
playerState = self.playerState
|
||||
timePassed = time() - self.activationTime
|
||||
if 1 <= timePassed < 1.5:
|
||||
playerState().addPoints(100000)
|
||||
playerState.addPoints(100000)
|
||||
elif 1.5 <= timePassed < 2:
|
||||
playerState().addPoints(150000)
|
||||
playerState.addPoints(150000)
|
||||
elif 2 <= timePassed < 5:
|
||||
playerState().addPoints(200000)
|
||||
playerState.addPoints(200000)
|
||||
elif timePassed >= 5:
|
||||
playerState().addPoints(500000)
|
||||
playerState.addPoints(500000)
|
||||
|
||||
Reference in New Issue
Block a user