Skip to content

Commit 83a6677

Browse files
Misc changes
- Made M chain blueprint compatible - Fixed K-scope being blueprint compatible when it wasn't supposed to be
1 parent 34f476b commit 83a6677

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

items/misc_joker.lua

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8179,8 +8179,13 @@ local kscope = {
81798179
immutable = true,
81808180
calculate = function(self, card, context)
81818181
if
8182-
(context.end_of_round and G.GAME.blind.boss and not context.individual and not context.repetition)
8183-
or context.forcetrigger
8182+
(
8183+
context.end_of_round
8184+
and G.GAME.blind.boss
8185+
and not context.individual
8186+
and not context.repetition
8187+
and not context.blueprint
8188+
) or context.forcetrigger
81848189
then
81858190
local eligiblejokers = {}
81868191
for k, v in pairs(G.jokers.cards) do
@@ -8195,6 +8200,9 @@ local kscope = {
81958200
local edition = { polychrome = true }
81968201
eligible_card:set_edition(edition, true)
81978202
check_for_unlock({ type = "have_edition" })
8203+
if not context.retrigger_joker then
8204+
card:juice_up(0.5, 0.5)
8205+
end
81988206
end
81998207
end
82008208
end,
@@ -8230,19 +8238,27 @@ local cryptidmoment = {
82308238
rarity = 1,
82318239
cost = 4,
82328240
order = 65,
8241+
blueprint_compat = true,
82338242
eternal_compat = false,
82348243
demicoloncompat = true,
82358244
atlas = "atlasthree",
82368245
calculate = function(self, card, context)
8237-
if (context.selling_self and not context.blueprint) or context.forcetrigger then
8246+
if context.selling_self or context.forcetrigger then
82388247
for k, v in ipairs(G.jokers.cards) do
82398248
if v.set_cost then
82408249
v.ability.extra_value = (v.ability.extra_value or 0)
82418250
+ math.max(card.ability.immutable.max_added_val, math.floor(card.ability.extra.money))
82428251
v:set_cost()
82438252
end
82448253
end
8245-
card_eval_status_text(card, "extra", nil, nil, nil, { message = localize("k_val_up"), colour = G.C.MONEY })
8254+
card_eval_status_text(
8255+
context.blueprint_card or card,
8256+
"extra",
8257+
nil,
8258+
nil,
8259+
nil,
8260+
{ message = localize("k_val_up"), colour = G.C.MONEY }
8261+
)
82468262
end
82478263
end,
82488264
cry_credits = {

0 commit comments

Comments
 (0)