changeset 363:3b2658751efa

fixed wall level
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Sun, 01 Mar 2009 11:09:44 +0800
parents 7f38a5cb769e
children 7274d8f41d5f
files agent.pl
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/agent.pl	Mon Feb 23 16:26:47 2009 +0800
+++ b/agent.pl	Sun Mar 01 11:09:44 2009 +0800
@@ -33,8 +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} >= 24 ?  1 : 0);
-# return ($city->{buildings}->{wall} >= $city->{buildings}->{townHall} ?  1 : 0);
+    return ($city->{buildings}->{wall} >= $city->{buildings}->{townHall} ?  1 : 0);
 }
 
 sub is_academy_enough {