mail[Wesnoth-commits] r28698 - /trunk/data/ai/formula/scouting_eval.fai


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dhains on August 18, 2008 - 09:09:
Author: dhains
Date: Mon Aug 18 09:09:15 2008
New Revision: 28698

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28698&view=rev
Log:
* Added movement points instead of unit type to eval

Modified:
    trunk/data/ai/formula/scouting_eval.fai

Modified: trunk/data/ai/formula/scouting_eval.fai
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/ai/formula/scouting_eval.fai?rev=28698&r1=28697&r2=28698&view=diff
==============================================================================
--- trunk/data/ai/formula/scouting_eval.fai (original)
+++ trunk/data/ai/formula/scouting_eval.fai Mon Aug 18 09:09:15 2008
@@ -1,13 +1,15 @@
 faifile 'scounting_eval.fai'
 
+if(me.loc = my_leader.loc,
+       -5,
 if(size(shroud) = 0, 
        -5,
 if(size(enemies_in_range) != 0,
        -5,
-if(me.id='Ghost', 
-       100, 
-       -5)))
+if(me.total_movement > 5, 
+       50, 
+       -5))))
 where enemies_in_range = 
filter(unit_moves(me.loc),units_can_reach(enemy_moves, self)),
-      shroud   = find_shroud()
+      shroud   = find_shroud(),
 
 faiend




Related Messages


Powered by MHonArc, Updated Mon Aug 18 14:21:09 2008