changeset 319:61dd017416cf

maxium level of wall is 24
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Mon, 12 Jan 2009 22:34:48 +0800
parents e5e25d4a2c2f
children ddfbb413d4dc
files agent.pl
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/agent.pl	Mon Jan 12 22:26:48 2009 +0800
+++ b/agent.pl	Mon Jan 12 22:34:48 2009 +0800
@@ -33,7 +33,7 @@
     my ($self, $city) = @_;
     # http://ikariam.wikia.com/wiki/Wall_Defense
     # Basic rule - the wall level must equale or large then townHall level.
-    return ($city->{buildings}->{wall} >= 26 ?  1 : 0);
+    return ($city->{buildings}->{wall} >= 24 ?  1 : 0);
 # return ($city->{buildings}->{wall} >= $city->{buildings}->{townHall} ?  1 : 0);
 }
 
@@ -429,7 +429,7 @@
     $i->set("academy", $cityId);
 
     # Only when you are not happy.
-    $i->set("tavern", $cityId);
+# $i->set("tavern", $cityId);
 
     # build military!
     $tree  = LoadFile('military.yaml');