mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 17:51:51 +00:00
16 lines
306 B
Plaintext
16 lines
306 B
Plaintext
wfl 'scouting_eval.fai'
|
|
|
|
if(me.loc = my_leader.loc,
|
|
-5,
|
|
if( size(shroud) = 0,
|
|
-5,
|
|
if( size(enemies_in_range) != 0,
|
|
-5,
|
|
if( me.max_moves > 5,
|
|
50,
|
|
-5))))
|
|
where enemies_in_range = filter( enemy_units, 'enemy', distance_between( me.loc, enemy.loc ) < me.max_moves),
|
|
shroud = find_shroud()
|
|
|
|
wflend
|