Mercurial > eagle-eye
changeset 267:06ee88d2bb2a
fixed a typo
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Tue, 25 Nov 2008 23:08:00 +0800 |
parents | 53827cc442b6 |
children | 285d5b39ef2c |
files | agent.pl |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/agent.pl Tue Nov 25 23:06:47 2008 +0800 +++ b/agent.pl Tue Nov 25 23:08:00 2008 +0800 @@ -21,7 +21,7 @@ sub is_attacked { my ($self, $city) = @_; - return ($self->{'ikariam'}->{'military'}->{attacks} > 0 ) ? 1 : 0; + return ($self->{'ikariam'}->{'military'}->{attack} > 0 ) ? 1 : 0; } sub is_constructing { @@ -412,6 +412,7 @@ $cities->{$cityId}->{parse_path} = []; $cities->{$cityId}->{parse_answer} = undef; if (my $action = ParseTree($tree, $rules, $cities->{$cityId})) { + # printf("%s is suppressed\n", $action); triggerAction($action, $cityId); } DumpFile("city-$cityId-dump.yaml", $cities->{$cityId});