Allow The Wee to be disabled

This commit is contained in:
Emik 2025-04-18 00:41:38 +02:00
parent f6c6066751
commit f1e6007cbd
Signed by: emik
GPG key ID: 09CDFF9E5703688D
4 changed files with 19 additions and 6 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.3.2" "version": "1.3.3"
} }

View file

@ -479,6 +479,9 @@ back {
"are always " .. (Cryptid and "{C:cry_ascendant}" or "{C:attention}") .. "equalized", "are always " .. (Cryptid and "{C:cry_ascendant}" or "{C:attention}") .. "equalized",
}, },
}, },
alt_apply = function(_)
apply_orrery()
end,
apply = function(_) apply = function(_)
apply_orrery() apply_orrery()
end, end,
@ -610,7 +613,7 @@ back {
}, },
}, },
alt_loc_txt = { alt_loc_txt = {
name = "Weeckweeck", name = "We",
text = { text = {
"Every stat and", "Every stat and",
"card number is {C:attention}2", "card number is {C:attention}2",
@ -630,6 +633,7 @@ back {
p.boosters_in_shop = 2 p.boosters_in_shop = 2
p.consumable_slots = 2 p.consumable_slots = 2
p.vouchers_in_shop = 2 p.vouchers_in_shop = 2
G.GAME.round_resets.temp_handsize = 2
G.GAME.weeckweeck = true G.GAME.weeckweeck = true
for _, v in pairs(G.GAME.hands) do for _, v in pairs(G.GAME.hands) do

View file

@ -142,7 +142,14 @@ SMODS.Blind {
pos = {x = 0, y = 3}, pos = {x = 0, y = 3},
vars = {}, vars = {},
dollars = 2, dollars = 2,
debuff_hand = function(_, cards, _, _, _) disable = function(self)
self.disabled = true
end,
debuff_hand = function(self, cards, _, _, _)
if self.disabled then
return false
end
for _, v in ipairs(cards) do for _, v in ipairs(cards) do
if (v:norank() or v:get_id() ~= 2) and (v.ability or {}).aikoyori_letters_stickers ~= "2" then if (v:norank() or v:get_id() ~= 2) and (v.ability or {}).aikoyori_letters_stickers ~= "2" then
return true return true
@ -152,8 +159,10 @@ SMODS.Blind {
get_loc_debuff_text = function(_) get_loc_debuff_text = function(_)
return "Hand must contain only 2s" return "Hand must contain only 2s"
end, end,
recalc_debuff = function(_, card, _) recalc_debuff = function(self, card, _)
return (card:norank() or card:get_id() ~= 2) and (card.ability or {}).aikoyori_letters_stickers ~= "2" return not self.disabled and
(card:norank() or card:get_id() ~= 2) and
(card.ability or {}).aikoyori_letters_stickers ~= "2"
end, end,
set_blind = function(self) set_blind = function(self)
if to_number(self.mult) == 0 then if to_number(self.mult) == 0 then

View file

@ -527,7 +527,7 @@ SMODS.Joker {
card.ability.perish_tally = 1e9 card.ability.perish_tally = 1e9
end end
if ({[false] = context.cardarea ~= G.play or context.repetition, [true] = not context.joker_main})[not not Cryptid] then if ({[false] = context.repetition, [true] = not context.joker_main})[not not Cryptid] then
return return
end end