Goto MAI: make [filter] an optional parameter
Defaults to all units of the side if not defined.
This commit is contained in:
parent
8d8014e375
commit
2c890d5932
1 changed files with 2 additions and 2 deletions
|
@ -456,8 +456,8 @@ function wesnoth.wml_actions.micro_ai(cfg)
|
|||
|
||||
--------- Goto Micro AI - side-wide AI ------------------------------------
|
||||
elseif (cfg.ai_type == 'goto') then
|
||||
required_keys = { "filter", "filter_location" }
|
||||
optional_keys = { "avoid_enemies", "release_all_units_at_goal", "release_unit_at_goal", "unique_goals", "use_straight_line" }
|
||||
required_keys = { "filter_location" }
|
||||
optional_keys = { "avoid_enemies", "filter", "release_all_units_at_goal", "release_unit_at_goal", "unique_goals", "use_straight_line" }
|
||||
CA_parms = { { ca_id = 'mai_goto', score = cfg.ca_score or 300000 } }
|
||||
|
||||
--------- Hang Out Micro AI - side-wide AI ------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue