Skip to content

Commit 9f85e58

Browse files
committed
fix chocolate egg
1 parent bf883bc commit 9f85e58

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

items/jokers/misc_jokers.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ local chocolate_egg = {
467467
{ message = localize("entr_opened"), colour = G.C.GREEN }
468468
)
469469
card.ability.no_destroy = true
470-
local c = create_card("Joker", G.jokers, nil, "cry_epic")
470+
local c = create_card("Joker", G.jokers, nil, (SMODS.Mods["Cryptid"] or {}).can_load and "cry_epic" or 3)
471471
c:add_to_deck()
472472
G.jokers:emplace(c)
473473
c:set_edition("e_entr_sunny")
@@ -491,7 +491,12 @@ local chocolate_egg = {
491491
entr_credits = {
492492
idea = {"cassknows"},
493493
art = {"missingnumber"}
494-
}
494+
},
495+
loc_vars = function()
496+
return {
497+
key = (SMODS.Mods["Cryptid"] or {}).can_load and "j_entr_chocolate_egg" or "j_entr_chocolate_egg_cryptidless"
498+
}
499+
end
495500
}
496501

497502
local lotteryticket = {

localization/en-us.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ local decs = {
445445
"when this Joker is {C:red}banished{}"
446446
}
447447
},
448+
j_entr_chocolate_egg_cryptidless = {
449+
name = "Chocolate Egg",
450+
text = {
451+
"Create a random {C:dark_edition}Sunny{} {C:red}Rare{} Joker",
452+
"when this joker is destroyed",
453+
}
454+
},
448455
j_entr_antireal = {
449456
name = "Antireal Joker",
450457
text = {
@@ -5777,4 +5784,4 @@ for i, v in pairs(G.localization.descriptions.Blind) do
57775784
}
57785785
end
57795786
decs.descriptions.CBlind = CBlind
5780-
return decs
5787+
return decs

0 commit comments

Comments
 (0)