# HG changeset patch # User "Rex Tsai " # Date 1235876984 -28800 # Node ID 3b2658751efa349d4a65ca74828c0033457b63d4 # Parent 7f38a5cb769e568460b4b4584d43584d9503b24e fixed wall level diff -r 7f38a5cb769e -r 3b2658751efa agent.pl --- 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 {