Mercurial > eagle-eye
diff agent.pl @ 363:3b2658751efa
fixed wall level
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Sun, 01 Mar 2009 11:09:44 +0800 |
parents | 26f52b25aa06 |
children | 0522468991c1 |
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 {