Skip to content

Commit d1be590

Browse files
authored
Merge pull request #792 from etherware-novice/thalia
thalia and melpomeme lgtm
2 parents 99f66ca + 3b4eadc commit d1be590

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
@@ -10921,6 +10921,71 @@ local broken_sync = {
1092110921
end,
1092210922
}
1092310923

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

1105811124
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)