Buff Void spectral to give 2 free negative cryptids

This commit is contained in:
Emik 2025-03-27 03:36:32 +01:00
parent 24d47bb04e
commit 7fc1e188a0
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 34 additions and 11 deletions

View file

@ -1,14 +1,14 @@
return { return {
descriptions = { descriptions = {
Blind = { Blind = {
bl_Roland_improbable = { bl_Roland_improbable = {
name = "The Improbable", name = "The Improbable",
text = {"{C:attention}All probabilities", "cannot happen"} text = {"{C:attention}All probabilities", "cannot happen"}
}, },
bl_Roland_nimble = { bl_Roland_nimble = {
name = "The Nimble", name = "The Nimble",
text = {"The first {C:attention}5 cards", "drawn are {C:attention}played"} text = {"The first {C:attention}5 cards", "drawn are {C:attention}played"}
}, },
}, },
Joker = { Joker = {
j_Roland_escapey = { j_Roland_escapey = {
@ -48,7 +48,8 @@ return {
name = "Void", name = "Void",
text = { text = {
"{C:red}Destroys {X:red,C:white}all{} owned", "{C:red}Destroys {X:red,C:white}all{} owned",
"{C:attention}playing cards", "playing cards {}for",
"{C:attention}#1# {C:dark_edition}Negative {C:spectral}Cryptids",
} }
} }
} }

View file

@ -22,10 +22,14 @@ SMODS.Consumable {
pos = {x = 0, y = 0}, pos = {x = 0, y = 0},
cost = 6, cost = 6,
atlas = "void", atlas = "void",
config = {extra = {amount = 2}},
loc_vars = function(_, _, card)
return {vars = {card.ability.extra.amount}}
end,
can_use = function(_, _) can_use = function(_, _)
return #G.playing_cards > 1 and can_use() return #G.playing_cards > 1 and can_use()
end, end,
use = function(_, _, _, _) use = function(_, card, _, _)
local function destructible(v) local function destructible(v)
return not v.ability or not (v.ability.eternal or v.ability.cry_absolute) return not v.ability or not (v.ability.eternal or v.ability.cry_absolute)
end end
@ -48,6 +52,24 @@ SMODS.Consumable {
F.foreach(cards, destroy) F.foreach(cards, destroy)
F.foreach(G.jokers.cards, calculate_joker) F.foreach(G.jokers.cards, calculate_joker)
for _ = 1, card.ability.extra.amount do
local cryptid = create_card(
nil,
G.consumeables,
nil,
nil,
nil,
nil,
"c_cryptid",
"void"
)
cryptid:set_edition({negative = true}, true)
cryptid:add_to_deck()
G.consumeables:emplace(cryptid)
end
return true return true
end end