Skip to content

Commit e7922f5

Browse files
committed
2 parents 0bedb76 + d1be590 commit e7922f5

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

assets/1x/atlasthree.png

2.46 KB
Loading

assets/2x/atlasthree.png

-2.32 KB
Loading

items/misc_joker.lua

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10922,6 +10922,71 @@ local broken_sync = {
1092210922
end,
1092310923
}
1092410924

10925+
local thal = {
10926+
cry_credits = {
10927+
idea = {
10928+
"ODanK8604",
10929+
},
10930+
art = {
10931+
"Pangaea",
10932+
},
10933+
code = {
10934+
"candycanearter",
10935+
},
10936+
},
10937+
object_type = "Joker",
10938+
name = "cry-thalia",
10939+
key = "thalia",
10940+
atlas = "atlasthree",
10941+
pos = { x = 0, y = 8 },
10942+
soul_pos = { x = 1, y = 8 },
10943+
config = { extra = { xmgain = 1 } },
10944+
rarity = 4,
10945+
cost = 20,
10946+
order = 145,
10947+
demicoloncompat = true,
10948+
blueprint_compat = true,
10949+
10950+
loc_vars = function(self, info_queue, card)
10951+
return { vars = { card.ability.extra.xmgain, self:calc_xmult(card) } }
10952+
end,
10953+
10954+
calc_xmult = function(self, card)
10955+
if not (G.jokers and G.jokers.cards) then
10956+
return 1
10957+
end
10958+
10959+
local seen = {}
10960+
for _, c in ipairs(G.jokers.cards) do
10961+
local rarity = c.config.center.rarity
10962+
if not seen[rarity] then
10963+
seen[rarity] = 1
10964+
end
10965+
end
10966+
10967+
-- because lua generates keys automatically we ahve to do this
10968+
local n = 0
10969+
for _, r in pairs(seen) do
10970+
if r then
10971+
n = n + 1
10972+
end
10973+
end
10974+
10975+
-- n pick 2, or n!/(n-2)!, simplified bc of how lua is
10976+
local bonus = (n * (n - 1)) / 2
10977+
if bonus < 1 then
10978+
return 1
10979+
end
10980+
return bonus * card.ability.extra.xmgain
10981+
end,
10982+
10983+
calculate = function(self, card, context)
10984+
if context.joker_main or context.force_trigger then
10985+
return { mult = self:calc_xmult(card) }
10986+
end
10987+
end,
10988+
}
10989+
1092510990
local miscitems = {
1092610991
jimball_sprite,
1092710992
dropshot,
@@ -11054,6 +11119,7 @@ local miscitems = {
1105411119
fading_joker,
1105511120
poor_joker,
1105611121
broken_sync,
11122+
thal,
1105711123
}
1105811124

1105911125
return {

localization/en-us.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,13 @@ return {
12401240
"{C:inactive,s:0.8}...it's seen better days.",
12411241
},
12421242
},
1243+
j_cry_thalia = {
1244+
name = "Thalia and Melpomeme",
1245+
text = {
1246+
"Gains {C:white,X:mult}X#1#{} for every pair of unique rarities",
1247+
"{C:inactive}(Currently {C:white,X:mult}X#2#{C:inactive}){}",
1248+
},
1249+
},
12431250
j_cry_brittle = {
12441251
name = "Brittle Candy",
12451252
text = {

0 commit comments

Comments
 (0)