Skip to content

Commit c51b199

Browse files
hook is now temporary (#795)
1 parent 4eb0268 commit c51b199

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

items/code.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,10 @@ local hooked = {
22502250
end
22512251
var = var or ("[no joker found - " .. (card.ability.cry_hook_id or "nil") .. "]")
22522252
end
2253-
return { vars = { var or "hooked Joker" } }
2253+
return {
2254+
vars = { var or "hooked Joker" },
2255+
key = Cryptid.gameset_loc(self, { madness = "2" }),
2256+
}
22542257
end,
22552258
key = "cry_hooked",
22562259
no_sticker_sheet = true,
@@ -2278,6 +2281,10 @@ local hooked = {
22782281
end
22792282
end
22802283
end
2284+
2285+
if context.end_of_round and context.individual and Cryptid.gameset(G.P_CENTERS.c_cry_hook) ~= "madness" then
2286+
card.ability.cry_hooked = nil
2287+
end
22812288
end,
22822289
}
22832290
-- ://Off By One

localization/en-us.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4483,6 +4483,16 @@ return {
44834483
},
44844484
},
44854485
cry_hooked = {
4486+
name = "Hooked",
4487+
text = {
4488+
"When this Joker is {C:cry_code}triggered{},",
4489+
"trigger {C:cry_code}#1#",
4490+
"{C:inactive}Not all cards can be triggered this way{}",
4491+
"{C:inactive}but all Jokers can trigger the other{}",
4492+
"Removed at end of round",
4493+
},
4494+
},
4495+
cry_hooked_2 = {
44864496
name = "Hooked",
44874497
text = {
44884498
"When this Joker is {C:cry_code}triggered{},",

0 commit comments

Comments
 (0)