Abandon dynamic scaling only for Cryptid

This commit is contained in:
Emik 2025-03-27 23:43:36 +01:00
parent 9828da63a9
commit 6e4f7e6b8e
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 10 additions and 6 deletions

View file

@ -12,5 +12,5 @@
"Bakery (>=0.1.26~*)" "Bakery (>=0.1.26~*)"
], ],
"conflicts": ["Jen"], "conflicts": ["Jen"],
"version": "0.1.6" "version": "0.1.7"
} }

View file

@ -433,11 +433,15 @@ local function attunement()
return sum return sum
end end
if Cryptid then
return 1.001
end
local cards = polygloss(G.playing_cards) + polygloss(G.jokers.cards) + polygloss(G.consumeables.cards) local cards = polygloss(G.playing_cards) + polygloss(G.jokers.cards) + polygloss(G.consumeables.cards)
local base = Cryptid and 1.001 or 1.01 local base = 1.01
local round = Cryptid and 1000 or 100 local round = 100
local expo = cards * 2
local error_correction = 1e-10 local error_correction = 1e-10
local expo = cards * 2 + 1
return math.floor(base ^ expo * round + error_correction) / round return math.floor(base ^ expo * round + error_correction) / round
end end
@ -477,8 +481,8 @@ SMODS.Joker {
attuned and "" or "[", attuned and "" or "[",
attuned and "" or karma, attuned and "" or karma,
attuned and "" or " / " .. max_karma .. "]", attuned and "" or " / " .. max_karma .. "]",
attuned and "(Cannot be debuffed, scales with " or "", attuned and "(Cannot be debuffed" .. (Cryptid and "" or ", scales with ") or "",
attuned and "polygloss" or "", attuned and (Cryptid and "" or "polygloss") or "",
attuned and ")" or "", attuned and ")" or "",
}} }}
end, end,