Rewrite tortoise functionality (untested)

This commit is contained in:
Emik 2025-03-26 12:29:06 +01:00
parent 511187e2e5
commit 23da15542a
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D

View file

@ -162,8 +162,14 @@ function ease_ante(mod)
end end
if G.GAME.tortoise and mod > 0 then if G.GAME.tortoise and mod > 0 then
local disp = tonumber(G.GAME.round_resets.ante_disp) + mod / 2 local remainder = 0
mod = mod / 2 + (disp == math.floor(disp) and 0.5 or 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 end
orig_ante(mod) orig_ante(mod)