Skip to content

Commit 80de027

Browse files
authored
Merge pull request #61 from lord-ruby/dev
fix some stuff
2 parents 2845a65 + 9f85e58 commit 80de027

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

items/jokers/misc_jokers.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ local solar_dagger = {
314314
return true
315315
end,
316316
}))
317-
SMODS.scale_card(card, {ref_table = card.ability, ref_value = "plus_asc", scalar_table = {sell_cost = sliced_card.sell_cost * 0.1}, scalar_value = "sell_cost"})
317+
SMODS.scale_card(card, {ref_table = card.ability, ref_value = "x_asc", scalar_table = {sell_cost = sliced_card.sell_cost * 0.1}, scalar_value = "sell_cost"})
318318
end
319319
end
320320
if context.joker_main then
@@ -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 = {

lib/hooks.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,7 @@ end
23242324
local create_cardref = create_card_for_shop
23252325
function create_card_for_shop(area)
23262326
local card = create_cardref(area)
2327-
if card.ability.set == "Joker" and next(SMODS.find_card("j_entr_ieros")) then
2327+
if card and card.ability.set == "Joker" and next(SMODS.find_card("j_entr_ieros")) then
23282328
for i, v2 in pairs(G.jokers.cards) do
23292329
if v2.config.center.key == "j_entr_ieros" then
23302330
while pseudorandom("ieros") < 0.33 do

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)