Adjusted how DAS cut subtracts from the counter
parent
81677221f1
commit
5a074f77cf
12
funcs.lua
12
funcs.lua
|
@ -80,9 +80,13 @@ end
|
|||
|
||||
function table.contains(table, element)
|
||||
for _, value in pairs(table) do
|
||||
if value == element then
|
||||
return true
|
||||
end
|
||||
if value == element then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
function clamp(a, b, c)
|
||||
return math.min(a, math.max(b, c))
|
||||
end
|
|
@ -207,7 +207,7 @@ function GameMode:update(inputs, ruleset)
|
|||
) then
|
||||
self.das.frames = math.max(
|
||||
self.das.frames - self:getDasCutDelay(),
|
||||
-self:getDasCutDelay()
|
||||
-(self:getDasCutDelay() + 1)
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue