Accept [place_shroud]/[remove_shroud] with just a side key
This commit is contained in:
parent
d0837b5d9e
commit
39d31219e5
1 changed files with 10 additions and 2 deletions
|
@ -872,11 +872,19 @@ function wml_actions.set_menu_item(cfg)
|
|||
end
|
||||
|
||||
function wml_actions.place_shroud(cfg)
|
||||
wesnoth.place_shroud(cfg)
|
||||
local sides = utils.get_sides(cfg)
|
||||
local tiles = wesnoth.get_locations(cfg)
|
||||
for i,side in ipairs(sides) do
|
||||
wesnoth.place_shroud(side, tiles)
|
||||
end
|
||||
end
|
||||
|
||||
function wml_actions.remove_shroud(cfg)
|
||||
wesnoth.remove_shroud(cfg)
|
||||
local sides = utils.get_sides(cfg)
|
||||
local tiles = wesnoth.get_locations(cfg)
|
||||
for i,side in ipairs(sides) do
|
||||
wesnoth.remove_shroud(side, tiles)
|
||||
end
|
||||
end
|
||||
|
||||
function wml_actions.time_area(cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue