diff --git a/localization/en-us.lua b/localization/en-us.lua index 2542663..8c2997d 100644 --- a/localization/en-us.lua +++ b/localization/en-us.lua @@ -1,14 +1,14 @@ return { descriptions = { - Blind = { - bl_Roland_improbable = { - name = "The Improbable", - text = {"{C:attention}All probabilities", "cannot happen"} - }, - bl_Roland_nimble = { - name = "The Nimble", - text = {"The first {C:attention}5 cards", "drawn are {C:attention}played"} - }, + Blind = { + bl_Roland_improbable = { + name = "The Improbable", + text = {"{C:attention}All probabilities", "cannot happen"} + }, + bl_Roland_nimble = { + name = "The Nimble", + text = {"The first {C:attention}5 cards", "drawn are {C:attention}played"} + }, }, Joker = { j_Roland_escapey = { @@ -48,7 +48,8 @@ return { name = "Void", text = { "{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", } } } diff --git a/src/spectral.lua b/src/spectral.lua index 6e53a5e..a3e2198 100644 --- a/src/spectral.lua +++ b/src/spectral.lua @@ -22,10 +22,14 @@ SMODS.Consumable { pos = {x = 0, y = 0}, cost = 6, atlas = "void", + config = {extra = {amount = 2}}, + loc_vars = function(_, _, card) + return {vars = {card.ability.extra.amount}} + end, can_use = function(_, _) return #G.playing_cards > 1 and can_use() end, - use = function(_, _, _, _) + use = function(_, card, _, _) local function destructible(v) return not v.ability or not (v.ability.eternal or v.ability.cry_absolute) end @@ -48,6 +52,24 @@ SMODS.Consumable { F.foreach(cards, destroy) 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 end