Rewrite tortoise functionality (untested)
This commit is contained in:
parent
511187e2e5
commit
23da15542a
1 changed files with 8 additions and 2 deletions
10
src/back.lua
10
src/back.lua
|
|
@ -162,8 +162,14 @@ function ease_ante(mod)
|
|||
end
|
||||
|
||||
if G.GAME.tortoise and mod > 0 then
|
||||
local disp = tonumber(G.GAME.round_resets.ante_disp) + mod / 2
|
||||
mod = mod / 2 + (disp == math.floor(disp) and 0.5 or 0)
|
||||
local remainder = 0
|
||||
|
||||
if mod % 2 == 1 then
|
||||
G.GAME.tortoise_halved = not G.GAME.tortoise_halved
|
||||
remainder = G.GAME.tortoise_halved and 0 or 1
|
||||
end
|
||||
|
||||
mod = math.floor(mod / 2) + remainder
|
||||
end
|
||||
|
||||
orig_ante(mod)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue