Skip to content

Commit 4385a36

Browse files
Reimplement Sapling func with disabled epics
Adds back sapling creating Rare jokers when Epic jokers are disabled - More neat description this time :p
1 parent 54df2f3 commit 4385a36

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

items/misc_joker.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,6 @@ local sapling = {
25982598
dependencies = {
25992599
items = {
26002600
"set_cry_misc_joker",
2601-
"set_cry_epic",
26022601
}
26032602
},
26042603
name = "cry-sapling",
@@ -2611,7 +2610,12 @@ local sapling = {
26112610
blueprint_compat = false,
26122611
eternal_compat = false,
26132612
loc_vars = function(self, info_queue, center)
2614-
return { vars = { center.ability.extra.score, center.ability.extra.req } }
2613+
return {
2614+
vars = {
2615+
center.ability.extra.score, center.ability.extra.req, cry_card_enabled("set_cry_epic") == true and localize("k_cry_epic") or localize("k_rare"),
2616+
colours = { G.C.RARITY[cry_card_enabled("set_cry_epic") == true and "cry_epic" or 3] },
2617+
},
2618+
}
26152619
end,
26162620
atlas = "atlasone",
26172621
calculate = function(self, card, context)
@@ -2635,8 +2639,9 @@ local sapling = {
26352639
and not context.retrigger_joker
26362640
then
26372641
if card.ability.extra.score >= card.ability.extra.req then
2642+
local value = cry_card_enabled("set_cry_epic") == true and "cry_epic" or 0.99
26382643
card_eval_status_text(card, 'extra', nil, nil, nil, {message = localize('k_plus_joker'), colour = G.C.RARITY["cry_epic"]})
2639-
local card = create_card("Joker", G.jokers, nil, 'cry_epic', nil, nil, nil, "cry_sapling")
2644+
local card = create_card("Joker", G.jokers, nil, value, nil, nil, nil, "cry_sapling")
26402645
card:add_to_deck()
26412646
G.jokers:emplace(card)
26422647
card:start_materialize()

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ return {
21602160
text = {
21612161
"After scoring {C:attention}#2#{} {C:inactive}[#1#]{} Enhanced",
21622162
"cards, sell this card to",
2163-
"create an {C:cry_epic}Epic{} {C:attention}Joker{}",
2163+
"create a(n) {V:1}#3#{} {C:attention}Joker{}",
21642164
},
21652165
},
21662166
j_cry_savvy = {

0 commit comments

Comments
 (0)