Skip to content

Commit fa75974

Browse files
Crash fix
1 parent c32d1c5 commit fa75974

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

items/misc_joker.lua

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,19 +2734,13 @@ local magnet = {
27342734
money = 2,
27352735
slots = 4,
27362736
},
2737-
immutable = {
2738-
Xmoney = 4,
2739-
},
27402737
},
27412738
gameset_config = {
27422739
modest = {
27432740
extra = {
27442741
money = 2,
27452742
slots = 3,
27462743
},
2747-
immutable = {
2748-
Xmoney = 3,
2749-
},
27502744
},
27512745
},
27522746
rarity = 1,
@@ -2758,20 +2752,20 @@ local magnet = {
27582752
return {
27592753
vars = {
27602754
number_format(center.ability.extra.money),
2761-
number_format(center.ability.immutable.Xmoney),
2755+
4 - (Card.get_gameset(card) == "modest" and 1 or 0),
27622756
number_format(center.ability.extra.slots),
27632757
},
27642758
}
27652759
end,
27662760
atlas = "atlastwo",
27672761
calculate = function(self, card, context)
27682762
if context.forcetrigger then
2769-
ease_dollars(lenient_bignum(to_big(card.ability.extra.money) * center.ability.immutable.Xmoney))
2763+
ease_dollars(lenient_bignum(to_big(card.ability.extra.money) * (4 - (Card.get_gameset(card) == "modest" and 1 or 0))))
27702764
end
27712765
end,
27722766
calc_dollar_bonus = function(self, card)
27732767
if to_big(#G.jokers.cards) <= to_big(card.ability.extra.slots) then
2774-
return lenient_bignum(to_big(card.ability.extra.money) * center.ability.immutable.Xmoney)
2768+
return lenient_bignum(to_big(card.ability.extra.money) * (4 - (Card.get_gameset(card) == "modest" and 1 or 0)))
27752769
else
27762770
return lenient_bignum(card.ability.extra.money)
27772771
end

0 commit comments

Comments
 (0)