44 lines
1.1 KiB
Lua
44 lines
1.1 KiB
Lua
local voucher = (function()
|
|
local x = 0
|
|
|
|
---@param tbl SMODS.Voucher|{attributes: Attributes[]}
|
|
---@return SMODS.Voucher
|
|
return function(tbl)
|
|
tbl.pos = {x = x, y = 0}
|
|
tbl.atlas = "voucher"
|
|
tbl.cost = 10
|
|
x = x + 1
|
|
return SMODS.Voucher(tbl)
|
|
end
|
|
end)()
|
|
|
|
SMODS.Atlas {
|
|
px = 71,
|
|
py = 95,
|
|
key = "voucher",
|
|
path = "voucher.png",
|
|
}
|
|
|
|
voucher {
|
|
key = "ceres",
|
|
pronouns = "it_its",
|
|
config = {extra = {amount = 1, hand_type = "Flush House"}},
|
|
attributes = {"planet", "passive", "hand_type", "space"},
|
|
loc_vars = function(_, _, card)
|
|
return {vars = {card.ability.extra.amount}}
|
|
end,
|
|
in_pool = function(self)
|
|
return G.GAME.hands[self.config.extra.hand_type].visible
|
|
end,
|
|
}
|
|
|
|
voucher {
|
|
key = "neptune",
|
|
pronouns = "it_its",
|
|
requires = {"v_Roland_ceres"},
|
|
config = {extra = {amount = 2, hand_type = "Straight Flush"}},
|
|
attributes = {"planet", "passive", "hand_type", "space"},
|
|
loc_vars = function(_, _, card)
|
|
return {vars = {card.ability.extra.amount}}
|
|
end,
|
|
}
|