Mercurial > eagle-eye
changeset 279:a9847bf80058
refined coding style
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Tue, 02 Dec 2008 17:13:36 +0800 |
parents | b2510d9339d8 |
children | 0d2c2a379c63 |
files | freeland.pl |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/freeland.pl Tue Dec 02 17:11:39 2008 +0800 +++ b/freeland.pl Tue Dec 02 17:13:36 2008 +0800 @@ -36,25 +36,25 @@ }); if($#islands == -1) { - my @cities = Ikariam::Cities->search_lamers(@location); - foreach my $city (@cities) { - my $island = Ikariam::Island->retrieve($city->island); - my $user = Ikariam::User->retrieve($city->user); - printf("%s (%d) \"%s\" %d [%d,%d] http://%s/index.php?view=island&id=%d&selectCity=%d\n", + my @cities = Ikariam::Cities->search_lamers(@location); + foreach my $city (@cities) { + my $island = Ikariam::Island->retrieve($city->island); + my $user = Ikariam::User->retrieve($city->user); + printf("%s (%d) \"%s\" %d [%d,%d] http://%s/index.php?view=island&id=%d&selectCity=%d\n", $user->name, $user->score, $city->cityname, $city->citylevel, $island->x, $island->y, $::server, $island->id, $city->cityId - ); - } + ); + } } else { # 依照距離列表 foreach my $island (@islands) { printf("%d [%d:%d] %s %s http://%s/index.php?view=island&id=%d%s\n", - (abs($x-$island->x) + abs($y-$island->y)), # minutes ? + (abs($x-$island->x) + abs($y-$island->y)), # minutes ? $island->x, $island->y, $tradegoodText[$island->tradegood], $wonderText[$island->wonder],