Make bulk use very fast
This commit is contained in:
parent
4fda3af9c0
commit
27ce5bbb2e
2 changed files with 5 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.83",
|
"version": "2.9.84",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -50,17 +50,19 @@ spectral {
|
||||||
options = f(G.P_SEALS):keys():where(f.nq "Roland_glass"):values():table(),
|
options = f(G.P_SEALS):keys():where(f.nq "Roland_glass"):values():table(),
|
||||||
}
|
}
|
||||||
|
|
||||||
q {
|
local _ = not card.Roland_immediate and q {
|
||||||
delay = 0.5,
|
delay = 0.5,
|
||||||
trigger = "after",
|
trigger = "after",
|
||||||
func = function()
|
func = function()
|
||||||
v:set_seal(seal, nil, true)
|
v:set_seal(seal, nil, true)
|
||||||
end,
|
end,
|
||||||
}
|
} or v:set_seal(seal, true, true)
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
bulk_use = function(self, card, area, copier, number)
|
bulk_use = function(self, card, area, copier, number)
|
||||||
|
card.Roland_immediate = true
|
||||||
f(number):map(f.const(self)):each(f.call("use", card, area, copier))
|
f(number):map(f.const(self)):each(f.call("use", card, area, copier))
|
||||||
|
card.Roland_immediate = nil
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue