1. Cat's Eye Technologies
  2. Super Wumpus Land

Commits

catseye  committed ca95e55

Make it more obvious when viewing a room from the subway train.

  • Participants
  • Parent commits ece5613
  • Branches default

Comments (0)

Files changed (2)

File impl/swl.js/src/swl.js

View file
         this.tty.reset();
 
         this.visited[this.roomNo] = 1;
-        print(desc + "\n");
+        print(desc);
+        if (this.subway > 0) {
+            print(" (aboard subway train)");
+        }
+        print("\n");
+
         print(rep('-', desc.length));
         print("\n\n");
 

File script/swl.pl

View file
 
   $visited[$room] = 1;
 
-  print $desc . "\n";
+  print $desc;
+  if ($subway) {
+      print " (aboard subway train)";
+  }
+  print "\n";
   print "-" x length($desc) . "\n\n";
 
   if ($room[$room]->[4] == 1)