Mercurial > eagle-eye
diff enemy.pl @ 302:efffa408eec5
refined the output of spy information
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Sun, 07 Dec 2008 22:25:52 +0800 |
parents | 986a75252cb3 |
children | 2ca2c4c49901 c4ef89a74128 |
line wrap: on
line diff
--- a/enemy.pl Sun Dec 07 22:25:30 2008 +0800 +++ b/enemy.pl Sun Dec 07 22:25:52 2008 +0800 @@ -115,7 +115,8 @@ if(-f sprintf("spy-%d-dump.yaml", $city->cityId)) { my $spydata = LoadFile(sprintf("spy-%d-dump.yaml", $city->cityId)); if($spydata->{city}->{buildings}->{townHall} ne $city->citylevel) { - printf("*OUTDATED* "); + printf("Hall: %s", $city->citylevel); + printf("\n*OUTDATED* "); } printf("Hall: %s, Wall: %s, Port: %s, Safehouse: %s, Risk: %s\n", $spydata->{city}->{buildings}->{townHall},