Skip to content

Commit dc0714d

Browse files
authored
Merge pull request SpectralPack#434 from TheRealNova422-real/patch-16
Hunting Season Code
2 parents f05cb83 + e5ff8f0 commit dc0714d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

items/misc_joker.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7718,6 +7718,42 @@ local lebaron_james = {
77187718
end
77197719
end,
77207720
}
7721+
local huntingseason = { -- If played hand contains three cards, destroy the middle card after scoring
7722+
object_type = "Joker",
7723+
dependencies = {
7724+
items = {
7725+
"set_cry_misc_joker",
7726+
},
7727+
},
7728+
name = "cry-huntingseason",
7729+
key = "huntingseason",
7730+
pos = { x = 4, y = 0 },
7731+
order = 134,
7732+
immutable = true,
7733+
rarity = 2,
7734+
cost = 7,
7735+
blueprint_compat = false,
7736+
atlas = "placeholders",
7737+
calculate = function(self, card, context)
7738+
if
7739+
(context.cardarea == G.play or context.cardarea == "unscored")
7740+
and context.destroy_card == context.full_hand[2]
7741+
and #context.full_hand == 3 -- 3 cards in played hand
7742+
and not context.blueprint
7743+
and not context.retrigger_joker
7744+
then
7745+
return { remove = true }
7746+
end
7747+
end,
7748+
cry_credits = {
7749+
idea = {
7750+
"Nova",
7751+
},
7752+
code = {
7753+
"Nova",
7754+
},
7755+
},
7756+
}
77217757
local miscitems = {
77227758
jimball_sprite,
77237759
dropshot,
@@ -7830,6 +7866,7 @@ local miscitems = {
78307866
foolhardy,
78317867
translucent,
78327868
lebaron_james,
7869+
huntingseason,
78337870
}
78347871
return {
78357872
name = "Misc. Jokers",

0 commit comments

Comments
 (0)