Use negative localization for consumables

This commit is contained in:
Emik 2026-02-20 23:48:34 +01:00
parent f21141d26f
commit 82767f3c36
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,7 @@
local f, q, u = unpack(... or require "lib.shared")
local negative = {key = "e_negative_consumable", set = "Edition", config = {extra = 1}}
local joker = (function()
local z = 0
@ -537,7 +539,7 @@ joker {
perishable_compat = true,
loc_vars = function(_, info_queue)
table.insert(info_queue, G.P_SEALS.Purple)
table.insert(info_queue, G.P_CENTERS.e_negative)
table.insert(info_queue, negative)
end,
in_pool = function()
return f(G.playing_cards):any(function(v)

View file

@ -1,5 +1,7 @@
local f, q, u = unpack(... or require "lib.shared")
local negative = {key = "e_negative_consumable", set = "Edition", config = {extra = 1}}
local spectral = (function()
local x = 0
@ -40,7 +42,7 @@ spectral {
artist = "aster",
config = {extra = {amount = 1, hand = -2}},
loc_vars = function(_, info_queue, card)
table.insert(info_queue, G.P_CENTERS.e_negative)
table.insert(info_queue, negative)
return {vars = {card.ability.extra.amount, card.ability.extra.hand}}
end,
can_use = function(_, card)
@ -123,7 +125,7 @@ local void = spectral {
soul_set = "Spectral",
config = {extra = {amount = 2}},
loc_vars = function(_, info_queue, card)
table.insert(info_queue, G.P_CENTERS.e_negative)
table.insert(info_queue, negative)
table.insert(info_queue, G.P_CENTERS.c_cryptid)
return {vars = {card.ability.extra.amount}}
end,