changeset 307:2972852a4ee5

added comment onn wingman
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Sun, 14 Dec 2008 02:35:53 +0800
parents 2f36120aba83
children 9e8dccf177e8 68138c99ee16 995862190853
files planner.pl
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/planner.pl	Wed Dec 10 00:42:31 2008 +0800
+++ b/planner.pl	Sun Dec 14 02:35:53 2008 +0800
@@ -71,6 +71,7 @@
 foreach my $i (0..$#wingman) {
     my $cityId = $wingman[$i];
     my $city = LoadFile(sprintf("city-%s-dump.yaml", $cityId));
+    $city->{type} = "wingman" . ($i+1);
     if(defined($opt_w)) {
         $city->{distance} = travelTime($targetCity->island->x, $targetCity->island->y, $city->{island}->{x}, $city->{island}->{y}, 20) - ($i * 20 + 20);
     } else {