From 151023da0efd1015178932d74d636b84ccf105c6 Mon Sep 17 00:00:00 2001 From: Emik Date: Fri, 18 Apr 2025 23:03:27 +0200 Subject: [PATCH] Improve We --- manifest.json | 2 +- src/back.lua | 26 +++++++++++--------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/manifest.json b/manifest.json index 9cee132..4d4d759 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.4.0" + "version": "1.4.1" } \ No newline at end of file diff --git a/src/back.lua b/src/back.lua index 2f38516..d8511ba 100644 --- a/src/back.lua +++ b/src/back.lua @@ -592,7 +592,7 @@ local function two(x) for k, v in pairs(x) do if type(v) == "number" then - x[k] = 2 + x[k] = x[k] == 0 and 0 or 2 elseif type(v) == "table" then two(v) end @@ -625,7 +625,6 @@ back { p.hands = 2 p.dollars = 2 p.discards = 2 - p.hand_size = 2 G.GAME.skips = 2 p.joker_slots = 2 p.reroll_cost = 2 @@ -633,8 +632,6 @@ back { p.boosters_in_shop = 2 p.consumable_slots = 2 p.vouchers_in_shop = 2 - G.GAME.round_resets.temp_handsize = 2 - G.GAME.weeckweeck = true for _, v in pairs(G.GAME.hands) do v.mult = 2 @@ -648,16 +645,10 @@ back { apply_weeck() end, alt_calculate = function(_) - for _, v in pairs(G.hand.cards) do - two(v.ability) - end - - for _, v in pairs(G.jokers.cards) do - two(v.ability) - end - - for _, v in pairs(G.consumeables.cards) do - two(v.ability) + if not G.GAME.we then + G.GAME.we = true + G.hand.config.highlighted_limit = 2 + G.hand:change_size(2 - G.hand.config.card_limit) end end, } @@ -911,7 +902,8 @@ function CardArea:emplace(card, location, stay_flipped) G.deck and G.consumeables and (self == G.jokers or self == G.hand or self == G.deck or self == G.consumeables) and - G.GAME.mysterious and card.ability and not + G.GAME.mysterious and + card.ability and not card.ability.mysterious_created and not card.created_from_split then card.ability.mysterious_created = true @@ -990,5 +982,9 @@ function CardArea:emplace(card, location, stay_flipped) end) else orig_emplace(self, card, location, stay_flipped) + + if G.GAME.we then + two(card.ability) + end end end