fix for formulaAI 'woodchopper' example
This commit is contained in:
parent
a86d16a8db
commit
509185dfa5
1 changed files with 7 additions and 3 deletions
|
@ -68,14 +68,18 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
|
|||
guard_loc="loc(8,5)"
|
||||
[/ai_vars]
|
||||
[/unit]
|
||||
[unit]
|
||||
x,y=16,7
|
||||
[unit]
|
||||
x,y=3,8
|
||||
type="Walking Corpse"
|
||||
generate_description=yes
|
||||
formula="move(me.loc, nearest_loc(me.loc, map(filter(map.terrain,id='forest'),loc)))"
|
||||
formula="move(me.loc, nearest_loc(nearest_loc(me.loc,map(filter(map.terrain,id='castle'),loc)),unit_moves(me.loc)))"
|
||||
[/unit]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ai_algorithm=formula_ai
|
||||
[ai]
|
||||
[team_formula]
|
||||
|
|
Loading…
Add table
Reference in a new issue