Skip to content

Commit 661ef02

Browse files
Merge pull request #494 from kierkat10/patch-3
Add Wonka Bar
2 parents f62d732 + c5ed7cf commit 661ef02

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

assets/1x/atlasspooky.png

7.23 KB
Loading

assets/2x/atlasspooky.png

40.2 KB
Loading

items/spooky.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,45 @@ local candy_sticks = {
16881688
},
16891689
},
16901690
}
1691+
-- Wonka Bar
1692+
-- Sell this card to permanently gain +1 card selection limit
1693+
local wonka_bar = {
1694+
object_type = "Joker",
1695+
dependencies = {
1696+
items = {
1697+
"set_cry_spooky",
1698+
},
1699+
},
1700+
key = "wonka_bar",
1701+
name = "cry_wonka_bar",
1702+
config = { extra = 1 },
1703+
pos = { x = 1, y = 3 },
1704+
order = 146,
1705+
rarity = "cry_candy",
1706+
cost = 10,
1707+
eternal_compat = false,
1708+
atlas = "atlasspooky",
1709+
loc_vars = function(self, info_queue, center)
1710+
return { vars = { center.ability.extra } }
1711+
end,
1712+
calculate = function(self, card, context)
1713+
if context.selling_self and not context.blueprint then
1714+
card.ability.extra = math.floor(card.ability.extra)
1715+
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit + card.ability.extra
1716+
end
1717+
end,
1718+
cry_credits = {
1719+
idea = {
1720+
"Inspector_B",
1721+
},
1722+
art = {
1723+
"George the Rat",
1724+
},
1725+
code = {
1726+
"Glitchkat10",
1727+
},
1728+
}
1729+
}
16911730
items = {
16921731
cotton_candy,
16931732
wrapped,
@@ -1720,6 +1759,7 @@ items = {
17201759
brittle,
17211760
monopoly_money,
17221761
candy_sticks,
1762+
wonka_bar,
17231763
}
17241764
return {
17251765
name = "Spooky",

localization/en-us.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,6 +2710,14 @@ return {
27102710
"{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)",
27112711
},
27122712
},
2713+
j_cry_wonka_bar = {
2714+
name = "Wonka Bar",
2715+
text = {
2716+
"Sell this card to",
2717+
"permanently gain {C:attention}+#1#{}",
2718+
"card selection limit",
2719+
},
2720+
},
27132721
j_cry_wrapped = {
27142722
name = "Wrapped Candy",
27152723
text = {

0 commit comments

Comments
 (0)