Use larger numbers

This commit is contained in:
Emik 2025-03-27 23:19:12 +01:00
parent e21b95254f
commit 9828da63a9
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D

View file

@ -434,10 +434,11 @@ local function attunement()
end
local cards = polygloss(G.playing_cards) + polygloss(G.jokers.cards) + polygloss(G.consumeables.cards)
local base = Cryptid and 1.0001 or 1.01
local round = Cryptid and 10000 or 100
local base = Cryptid and 1.001 or 1.01
local round = Cryptid and 1000 or 100
local error_correction = 1e-10
local expo = cards * 2 + 1
return math.floor(base ^ expo * round) / round
return math.floor(base ^ expo * round + error_correction) / round
end
SMODS.Joker {