From f93d8f09e6928283a49436fe800a90849bb5abbc Mon Sep 17 00:00:00 2001 From: Emik Date: Sun, 20 Jul 2025 10:06:30 +0200 Subject: [PATCH] Display uses left in Cryptid --- manifest.json | 2 +- src/tarot.lua | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/manifest.json b/manifest.json index b5cb5d2..9a19715 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.5.13" + "version": "1.5.14" } \ No newline at end of file diff --git a/src/tarot.lua b/src/tarot.lua index f3f9238..2c3b4f5 100644 --- a/src/tarot.lua +++ b/src/tarot.lua @@ -43,10 +43,7 @@ SMODS.Consumable { set = "Tarot", loc_txt = { name = "#1#-in-a-Tarot", - text = Cryptid and { - "Create a {C:dark_edition}Negative {C:attention}#2#", - "{C:inactive,E:1}#3#{}", - } or { + text = { "Create a {C:dark_edition}Negative {C:attention}#2#", "after {C:attention}#3# {}uses {C:inactive}(#4# left)", "{C:inactive,E:1}#5#{}", @@ -65,11 +62,7 @@ SMODS.Consumable { local desc = is_jolly and "Jolly Joker" or "default Joker" local name = is_jolly and "Jolly" or "Joker" - - local vars = Cryptid and {name, desc, card.blurb} or - {name, desc, required, required - get_uses(), card.blurb} - - return {vars = vars} + return {vars = {name, desc, required, required - get_uses(), card.blurb}} end, pos = {x = 0, y = 1}, cost = 4,