From c747099ec399b0b020687122c40194c333f69c65 Mon Sep 17 00:00:00 2001 From: Jason Self Date: Sun, 8 Sep 2019 07:36:24 -0700 Subject: [PATCH] The beeping doesn't need to be done by a daemon Using each_turn avoids needing to start a daemon. --- the-server-room.inf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/the-server-room.inf b/the-server-room.inf index 767d2b0..6ae7466 100644 --- a/the-server-room.inf +++ b/the-server-room.inf @@ -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: -- 2.31.1