Skip to content

Commit 4405ca2

Browse files
Summoning Misc
Making a similar change to this as with Saping - Summoning will now create a rare joker instead of an epic joker if Epic jokers are disabled
1 parent 6f83c7c commit 4405ca2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

items/spectral.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ local summoning = {
535535
dependencies = {
536536
items = {
537537
"set_cry_spectral",
538-
"set_cry_epic",
539538
},
540539
},
541540
set = "Spectral",
@@ -545,6 +544,14 @@ local summoning = {
545544
cost = 4,
546545
order = 5,
547546
atlas = "atlasnotjokers",
547+
loc_vars = function(self, info_queue, center)
548+
return {
549+
vars = {
550+
cry_card_enabled("set_cry_epic") == true and localize("k_cry_epic") or localize("k_rare"),
551+
colours = { G.C.RARITY[cry_card_enabled("set_cry_epic") == true and "cry_epic" or 3] },
552+
},
553+
}
554+
end,
548555
can_use = function(self, card)
549556
return #G.jokers.cards > 0
550557
end,
@@ -557,6 +564,7 @@ local summoning = {
557564
end
558565
end
559566
local chosen_joker = pseudorandom_element(G.jokers.cards, pseudoseed("cry_summoning"))
567+
local value = cry_card_enabled("set_cry_epic") == true and "cry_epic" or 0.99
560568
local _first_dissolve = nil
561569
G.E_MANAGER:add_event(Event({
562570
trigger = "before",
@@ -576,7 +584,7 @@ local summoning = {
576584
delay = 0.4,
577585
func = function()
578586
play_sound("timpani")
579-
local card = create_card("Joker", G.jokers, nil, "cry_epic", nil, nil, nil, "cry_summoning")
587+
local card = create_card("Joker", G.jokers, nil, value, nil, nil, nil, "cry_summoning")
580588
card:add_to_deck()
581589
G.jokers:emplace(card)
582590
card:juice_up(0.3, 0.5)

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2878,7 +2878,7 @@ return {
28782878
name = "Summoning",
28792879
text = {
28802880
"Create a random",
2881-
"{C:cry_epic}Epic{} {C:joker}Joker{}, destroy",
2881+
"{V:1}#1#{} {C:joker}Joker{}, destroy",
28822882
"one random {C:joker}Joker{}",
28832883
},
28842884
},

0 commit comments

Comments
 (0)