The beeping doesn't need to be done by a daemon
authorJason Self <j@jxself.org>
Sun, 8 Sep 2019 14:36:24 +0000 (07:36 -0700)
committerJason Self <j@jxself.org>
Sun, 8 Sep 2019 14:36:24 +0000 (07:36 -0700)
Using each_turn avoids needing to start a daemon.

the-server-room.inf

index 767d2b081131da49af4ed3b0b08f1ed7912f8866..6ae746615636c30ad1a34bc35eb3810a7ce26480 100644 (file)
@@ -38,7 +38,7 @@
 Constant Story "The Server Room";
 Constant Headline "^An Interactive Fiction by Daniel Bartholomew.^";
 Release 1;
-Serial "190827";
+Serial "190908";
 Constant MAX_SCORE = 6;
 Include "parser";
 Include "verblib";
@@ -135,7 +135,6 @@ Object  hallway "Hallway"
         before [;
           Go:
             if (noun == n_obj) {
-                StartDaemon(server_room);
                 print
                     "^^You use your key card to open the server room
                     door and step into your world.^";
@@ -152,9 +151,7 @@ Object  server_room "Server Room"
             up rack 7. The little indicator light is blinking red, and
             it is beeping.",
         s_to hallway,
-        daemon [;
-            if (location ~= server_room)
-                return;
+        each_turn [;
             beeping = random(7);
             switch (beeping) {
               1: