Added debugging support to scouting eval/move

This commit is contained in:
Douglas Hains 2008-08-18 06:53:25 +00:00
parent b9c5c9b744
commit fa3393c102
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,5 @@
faifile 'scounting_eval.fai'
if(size(shroud) = 0,
-5,
if(size(enemies_in_range) != 0,
@ -7,3 +9,5 @@ if(me.id='Ghost',
-5)))
where enemies_in_range = filter(unit_moves(me.loc),units_can_reach(enemy_moves, self)),
shroud = find_shroud()
faiend

View file

@ -1,5 +1,9 @@
faifile 'scounting_move.fai'
if(size(villages) != 0,
move(me.loc, nearest_loc(nearest_loc(me.loc,villages),unit_moves(me.loc))),
move(me.loc, nearest_loc(nearest_loc(me.loc,shroud),unit_moves(me.loc))))
where villages = filter(unit_moves(me.loc),is_unowned_village(map,x,y)),
shroud = find_shroud()
faiend