same for set_extra_recruit
This commit is contained in:
parent
f8f4c547d4
commit
8f020a7f3c
1 changed files with 2 additions and 2 deletions
|
@ -196,10 +196,10 @@ end
|
||||||
|
|
||||||
function wml_actions.set_extra_recruit(cfg)
|
function wml_actions.set_extra_recruit(cfg)
|
||||||
local filter = helper.get_child(cfg, "filter") or helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
|
local filter = helper.get_child(cfg, "filter") or helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
|
||||||
local recruit = cfg.extra_recruit or helper.wml_error("[set_extra_recruit] missing required extra_recruit= attribute")
|
local types = cfg.type or helper.wml_error("[set_extra_recruit] missing required type= attribute")
|
||||||
local v = {}
|
local v = {}
|
||||||
|
|
||||||
for w in string.gmatch(recruit, "[^%s,][^,]*") do
|
for w in string.gmatch(types, "[^%s,][^,]*") do
|
||||||
table.insert(v, w)
|
table.insert(v, w)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue