Add Afterimage spectral card
This commit is contained in:
parent
12d7e17b72
commit
396a1ff322
5 changed files with 54 additions and 3 deletions
BIN
assets/1x/afterimage.png
Normal file
BIN
assets/1x/afterimage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/2x/afterimage.png
Normal file
BIN
assets/2x/afterimage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
|
|
@ -44,6 +44,14 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Spectral = {
|
Spectral = {
|
||||||
|
c_Roland_afterimage = {
|
||||||
|
name = "Afterimage",
|
||||||
|
text = {
|
||||||
|
"Add {C:dark_edition}Negative {}to {C:attention}#1#",
|
||||||
|
"selected card in hand",
|
||||||
|
"{C:red}#2#{} hand size",
|
||||||
|
},
|
||||||
|
},
|
||||||
c_Roland_void = {
|
c_Roland_void = {
|
||||||
name = "Void",
|
name = "Void",
|
||||||
text = {
|
text = {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"author": [
|
"author": [
|
||||||
"Emik"
|
"Emik"
|
||||||
],
|
],
|
||||||
"version": "1.3.2",
|
"version": "1.4.0",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
"badge_text_colour": "44475A",
|
"badge_text_colour": "44475A",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
SMODS.Sound({key = "void", path = "void.ogg"})
|
|
||||||
|
|
||||||
local function can_use()
|
local function can_use()
|
||||||
return not ((G.play and #G.play.cards > 0 or
|
return not ((G.play and #G.play.cards > 0 or
|
||||||
G.CONTROLLER.locked or
|
G.CONTROLLER.locked or
|
||||||
|
|
@ -9,6 +7,15 @@ local function can_use()
|
||||||
G.STATE ~= G.STATES.PLAY_TAROT)
|
G.STATE ~= G.STATES.PLAY_TAROT)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
SMODS.Sound({key = "void", path = "void.ogg"})
|
||||||
|
|
||||||
|
SMODS.Atlas {
|
||||||
|
px = 71,
|
||||||
|
py = 95,
|
||||||
|
key = "afterimage",
|
||||||
|
path = "afterimage.png",
|
||||||
|
}
|
||||||
|
|
||||||
SMODS.Atlas {
|
SMODS.Atlas {
|
||||||
px = 71,
|
px = 71,
|
||||||
py = 95,
|
py = 95,
|
||||||
|
|
@ -16,6 +23,42 @@ SMODS.Atlas {
|
||||||
path = "void.png",
|
path = "void.png",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SMODS.Consumable {
|
||||||
|
key = "afterimage",
|
||||||
|
set = "Spectral",
|
||||||
|
pos = {x = 0, y = 0},
|
||||||
|
cost = 6,
|
||||||
|
atlas = "afterimage",
|
||||||
|
config = {extra = {amount = 1, hand = -1}},
|
||||||
|
loc_vars = function(_, _, card)
|
||||||
|
return {vars = {card.ability.extra.amount, card.ability.extra.hand}}
|
||||||
|
end,
|
||||||
|
can_use = function(_, card)
|
||||||
|
return can_use() and card.ability.extra.amount == #Bakery_API.get_highlighted()
|
||||||
|
end,
|
||||||
|
use = function(_, card, _, _)
|
||||||
|
for _, v in ipairs(Bakery_API.get_highlighted()) do
|
||||||
|
G.E_MANAGER:add_event(Event {
|
||||||
|
delay = 0.1,
|
||||||
|
func = function()
|
||||||
|
v:set_edition({negative = true})
|
||||||
|
v:juice_up(0.5, 0.5)
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
G.E_MANAGER:add_event(Event {
|
||||||
|
delay = 0.1,
|
||||||
|
func = function()
|
||||||
|
G.hand:change_size(card.ability.extra.hand)
|
||||||
|
Bakery_API.unhighlight_all()
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
SMODS.Consumable {
|
SMODS.Consumable {
|
||||||
key = "void",
|
key = "void",
|
||||||
set = "Spectral",
|
set = "Spectral",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue