Skip to content

Commit c4a1fd9

Browse files
committed
add poor joker
1 parent 14c0f72 commit c4a1fd9

File tree

3 files changed

+82
-1
lines changed

3 files changed

+82
-1
lines changed

assets/1x/atlasone.png

2.15 KB
Loading

items/misc_joker.lua

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10478,6 +10478,75 @@ local fading_joker = { -- +1 to all listed probabilities for the highest cat tag
1047810478
end
1047910479
}
1048010480

10481+
local poor_joker = { -- +1 to all listed probabilities for the highest cat tag level
10482+
cry_credits = {
10483+
idea = {
10484+
"DoNotSus",
10485+
},
10486+
art = {
10487+
"Darren_the_frog",
10488+
},
10489+
code = {
10490+
"lord.ruby",
10491+
},
10492+
},
10493+
object_type = "Joker",
10494+
dependencies = {
10495+
items = {
10496+
"set_cry_misc_joker",
10497+
},
10498+
},
10499+
name = "cry-poor_joker",
10500+
key = "poor_joker",
10501+
atlas = "atlasone",
10502+
pos = { x = 3, y = 6 },
10503+
rarity = 2,
10504+
cost = 6,
10505+
order = 144,
10506+
demicoloncompat = true,
10507+
blueprint_compat = true,
10508+
config = { extra = {mult = 0, mult_mod = 4} },
10509+
loc_vars = function(self, info_queue, card)
10510+
return { vars = { number_format(card.ability.extra.mult_mod), number_format(card.ability.extra.mult) } }
10511+
end,
10512+
calculate = function(self, card, context)
10513+
if context.rental or context.forcetrigger then
10514+
card.ability.extra.mult = card.ability.extra.mult + card.ability.extra.mult_mod
10515+
if not context.forcetrigger then
10516+
return {
10517+
message = localize({ type = "variable", key = "a_mult", vars = { card.ability.extra.mult } }),
10518+
colour = G.C.FILTER,
10519+
}
10520+
end
10521+
end
10522+
if context.joker_main or context.forcetrigger then
10523+
return {
10524+
message = localize({
10525+
type = "variable",
10526+
key = "a_mult",
10527+
vars = { number_format(card.ability.extra.mult) },
10528+
}),
10529+
mult_mod = lenient_bignum(card.ability.extra.mult),
10530+
}
10531+
end
10532+
end,
10533+
in_pool = function()
10534+
for i, v in pairs(G.I.CARD) do
10535+
if v.rental then
10536+
return true
10537+
end
10538+
end
10539+
end,
10540+
init = function()
10541+
local calcuate_rental_ref = Card.calculate_rental
10542+
function Card:calculate_rental(...)
10543+
local ret = calcuate_rental_ref(self, ...)
10544+
SMODS.calculate_context({rental = true, other_card = self, cardarea = self.area})
10545+
return ret
10546+
end
10547+
end
10548+
}
10549+
1048110550
local miscitems = {
1048210551
jimball_sprite,
1048310552
dropshot,
@@ -10607,7 +10676,10 @@ local miscitems = {
1060710676
pizza,
1060810677
pizza_slice,
1060910678
paved_joker,
10610-
fading_joker
10679+
fading_joker,
10680+
poor_joker
10681+
}
10682+
1061110683
return {
1061210684
name = "Misc. Jokers",
1061310685
init = function()

localization/en-us.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,6 +2719,15 @@ return {
27192719
"{C:inactive}(Currently{} {X:mult,C:white}X#2#{} {C:inactive}Mult){}"
27202720
},
27212721
},
2722+
j_cry_poor_joker = {
2723+
name = "Poor Joker",
2724+
text = {
2725+
"This Joker Gains",
2726+
"{C:mult}+#1#{} Mult whenever",
2727+
"a {C:attention}Rental{} card takes money",
2728+
"{C:inactive}(Currently{} {C:mult}+#2#{} {C:inactive}Mult){}"
2729+
},
2730+
},
27222731
j_cry_spaceglobe = {
27232732
name = "Celestial Globe",
27242733
text = {

0 commit comments

Comments
 (0)