|
@@ -90,7 +90,7 @@ function Hud:gui()
|
|
|
local baseWidth = 20
|
|
|
local baseHeight = 100
|
|
|
g.rectangle('line', 2, 50, baseWidth, baseHeight)
|
|
|
- local prc = math.lerp(self.prevRainbowShitDisplay, self.rainbowShitDisplay, ls.accum / ls.tickrate) / 30
|
|
|
+ local prc = math.lerp(self.prevRainbowShitDisplay, self.rainbowShitDisplay, ls.accum / ls.tickrate) / Pigeon.rainbowShitThreshold
|
|
|
g.setColor(255, 0, 0)
|
|
|
g.rectangle('fill', 2, 50 + baseHeight * (1 - prc), baseWidth, baseHeight * prc)
|
|
|
end
|
|
@@ -121,7 +121,7 @@ function Hud:addScore(amount, kind)
|
|
|
|
|
|
if kind == 'person' then
|
|
|
self.rainbowShitCounter = self.rainbowShitCounter + 1
|
|
|
- if self.rainbowShitCounter >= 30 then
|
|
|
+ if self.rainbowShitCounter >= Pigeon.rainbowShitThreshold then
|
|
|
self.rainbowShitCounter = 0
|
|
|
ctx.pigeon:activateRainbowShit()
|
|
|
end
|