Skip to content

Commit a8a6dc7

Browse files
These are already in lib/overrides
I swear I removed these from these files, how did they get back here bruh
1 parent c795727 commit a8a6dc7

File tree

3 files changed

+0
-38
lines changed

3 files changed

+0
-38
lines changed

items/misc_joker.lua

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -739,18 +739,6 @@ local cube = {
739739
"Math",
740740
},
741741
},
742-
init = function(self)
743-
local sc = Card.set_cost
744-
function Card:set_cost()
745-
sc(self)
746-
if self.ability.name == "cry-Cube" then
747-
self.cost = -27
748-
end
749-
if self.ability.name == "cry-Big Cube" then
750-
self.cost = 27
751-
end
752-
end
753-
end,
754742
}
755743
local triplet_rhythm = {
756744
object_type = "Joker",

items/spooky.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,14 +1725,6 @@ return {
17251725
name = "Spooky",
17261726
init = function()
17271727
--Cursed rarity patches
1728-
local sc = Card.set_cost
1729-
function Card:set_cost()
1730-
sc(self)
1731-
if self.config and self.config.center and self.config.center.rarity == "cry_cursed" then
1732-
self.sell_cost = 0
1733-
self.sell_cost_label = 0
1734-
end
1735-
end
17361728
--Really hacky patch to remove sell button for cursed jokers
17371729
local G_UIDEF_use_and_sell_buttons_ref = G.UIDEF.use_and_sell_buttons
17381730
function G.UIDEF.use_and_sell_buttons(card)

items/stake.lua

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -526,24 +526,6 @@ return {
526526
SMODS.calculate_context({ remove_playing_cards = true, removed = destroyed_cards })
527527
end,
528528
}, true)
529-
530-
local sc = Card.set_cost
531-
function Card:set_cost()
532-
sc(self)
533-
if self.ability.set == "Voucher" and G.GAME.modifiers.cry_voucher_price_hike then
534-
self.cost = math.floor(self.cost * G.GAME.modifiers.cry_voucher_price_hike)
535-
--Update related costs
536-
self.sell_cost = math.max(1, math.floor(self.cost / 2)) + (self.ability.extra_value or 0)
537-
if
538-
self.area
539-
and self.ability.couponed
540-
and (self.area == G.shop_jokers or self.area == G.shop_booster)
541-
then
542-
self.cost = 0
543-
end
544-
self.sell_cost_label = self.facing == "back" and "?" or self.sell_cost
545-
end
546-
end
547529
for _, v in pairs(self.items) do
548530
if v.object_type == "Stake" then
549531
v.sticker_pos = v.pos

0 commit comments

Comments
 (0)