[Lua.MapGen] Accept both comma-separated lists and arrays for f.adjacent
This commit is contained in:
parent
19f3682bdf
commit
a9948d3fff
1 changed files with 3 additions and 0 deletions
|
@ -381,6 +381,9 @@ if wesnoth.kernel_type() == "Mapgen Lua Kernel" then
|
|||
---@param count? integer|string A range list
|
||||
---@return terrain_filter_tag
|
||||
adjacent = function(f, adj, count)
|
||||
if type(adj) == 'table' then
|
||||
adj = stringx.join(',', adj)
|
||||
end
|
||||
return { "adjacent", f, adjacent = adj, count = count }
|
||||
end,
|
||||
---Match hexes from a separate list.
|
||||
|
|
Loading…
Add table
Reference in a new issue