Buff Void spectral to give 2 free negative cryptids
This commit is contained in:
parent
24d47bb04e
commit
7fc1e188a0
2 changed files with 34 additions and 11 deletions
|
|
@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue