Skip to content

Commit bcc50eb

Browse files
committed
Merge branch 'refactor' of https://github.com/MathIsFun0/Cryptid into refactor
2 parents 789f197 + 4385a36 commit bcc50eb

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

items/misc_joker.lua

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,7 +2565,6 @@ local sapling = {
25652565
dependencies = {
25662566
items = {
25672567
"set_cry_misc_joker",
2568-
"set_cry_epic",
25692568
},
25702569
},
25712570
name = "cry-sapling",
@@ -2578,7 +2577,14 @@ local sapling = {
25782577
blueprint_compat = false,
25792578
eternal_compat = false,
25802579
loc_vars = function(self, info_queue, center)
2581-
return { vars = { center.ability.extra.score, center.ability.extra.req } }
2580+
return {
2581+
vars = {
2582+
center.ability.extra.score,
2583+
center.ability.extra.req,
2584+
cry_card_enabled("set_cry_epic") == true and localize("k_cry_epic") or localize("k_rare"),
2585+
colours = { G.C.RARITY[cry_card_enabled("set_cry_epic") == true and "cry_epic" or 3] },
2586+
},
2587+
}
25822588
end,
25832589
atlas = "atlasone",
25842590
calculate = function(self, card, context)
@@ -2600,6 +2606,7 @@ local sapling = {
26002606
end
26012607
elseif context.selling_self and not context.blueprint and not context.retrigger_joker then
26022608
if card.ability.extra.score >= card.ability.extra.req then
2609+
local value = cry_card_enabled("set_cry_epic") == true and "cry_epic" or 0.99
26032610
card_eval_status_text(
26042611
card,
26052612
"extra",
@@ -2608,7 +2615,7 @@ local sapling = {
26082615
nil,
26092616
{ message = localize("k_plus_joker"), colour = G.C.RARITY["cry_epic"] }
26102617
)
2611-
local card = create_card("Joker", G.jokers, nil, "cry_epic", nil, nil, nil, "cry_sapling")
2618+
local card = create_card("Joker", G.jokers, nil, value, nil, nil, nil, "cry_sapling")
26122619
card:add_to_deck()
26132620
G.jokers:emplace(card)
26142621
card:start_materialize()
@@ -6052,7 +6059,8 @@ local busdriver = {
60526059
local oddy = math.max(1, card.ability.extra.odds)
60536060
if
60546061
pseudorandom("busdriver")
6055-
< 1 - (1 / (cry_prob(card.ability.cry_prob, card.ability.extra.odds, card.ability.cry_rigged) * oddy))
6062+
< 1
6063+
- (1 / (cry_prob(card.ability.cry_prob, card.ability.extra.odds, card.ability.cry_rigged) * oddy))
60566064
then
60576065
return {
60586066
message = localize({ type = "variable", key = "a_mult", vars = { card.ability.extra.mult } }),

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)