From 6e4f7e6b8e07f8d23d239a166169ffdfb7be6205 Mon Sep 17 00:00:00 2001 From: Emik Date: Thu, 27 Mar 2025 23:43:36 +0100 Subject: [PATCH] Abandon dynamic scaling only for Cryptid --- manifest.json | 2 +- src/slugcat.lua | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index f0f204d..52fde0c 100644 --- a/manifest.json +++ b/manifest.json @@ -12,5 +12,5 @@ "Bakery (>=0.1.26~*)" ], "conflicts": ["Jen"], - "version": "0.1.6" + "version": "0.1.7" } \ No newline at end of file diff --git a/src/slugcat.lua b/src/slugcat.lua index a878933..e28d3c8 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -433,11 +433,15 @@ local function attunement() return sum end + if Cryptid then + return 1.001 + end + local cards = polygloss(G.playing_cards) + polygloss(G.jokers.cards) + polygloss(G.consumeables.cards) - local base = Cryptid and 1.001 or 1.01 - local round = Cryptid and 1000 or 100 + local base = 1.01 + local round = 100 + local expo = cards * 2 local error_correction = 1e-10 - local expo = cards * 2 + 1 return math.floor(base ^ expo * round + error_correction) / round end @@ -477,8 +481,8 @@ SMODS.Joker { attuned and "" or "[", attuned and "" or karma, attuned and "" or " / " .. max_karma .. "]", - attuned and "(Cannot be debuffed, scales with " or "", - attuned and "polygloss" or "", + attuned and "(Cannot be debuffed" .. (Cryptid and "" or ", scales with ") or "", + attuned and (Cryptid and "" or "polygloss") or "", attuned and ")" or "", }} end,