Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions localization/en-us.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3855,6 +3855,14 @@ return {
"have a {C:attention}Paperclip{}"
}
},
paperback_omen_globe_minor_arcana = {
name = "Added Functionality",
text = {
"{C:spectral}Spectral{} cards may",
"also appear in",
"{C:paperback_minor_arcana}Minor Arcana Packs",
}
},

-- Stickers
paperback_energized = {
Expand Down
30 changes: 24 additions & 6 deletions utilities/definitions/minor_arcana.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,35 @@ if PB_UTIL.config.minor_arcana_enabled then
end,

create_card = function(self, card, i)
return {
set = 'paperback_minor_arcana',
area = G.pack_cards,
skip_materialize = true,
soulable = true -- Allow creating Apostle cards
}
local _card
if G.GAME.used_vouchers.v_omen_globe and pseudorandom('omen_globe') > 0.8 then
_card = {
set = "Spectral",
area = G.pack_cards,
skip_materialize = true,
soulable = true
}
else
_card = {
set = 'paperback_minor_arcana',
area = G.pack_cards,
skip_materialize = true,
soulable = true -- Allow creating Apostle cards
}
end
return _card
end,

ease_background_colour = function(self)
ease_colour(G.C.DYN_UI.MAIN, G.C.PAPERBACK_MINOR_ARCANA)
ease_background_colour { new_colour = G.C.PAPERBACK_MINOR_ARCANA, special_colour = G.C.BLACK, contrast = 2 }
end,
}

-- explain that Omen Globe allows Minor Arcana packs to spawn Spectrals
SMODS.Voucher:take_ownership("omen_globe", {
loc_vars = function(self, info_queue, card)
info_queue[#info_queue + 1] = { set = "Other", key = "paperback_omen_globe_minor_arcana" }
end
})
end