From: Jason Self Date: Sun, 8 Sep 2019 14:36:24 +0000 (-0700) Subject: The beeping doesn't need to be done by a daemon X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=c747099ec399b0b020687122c40194c333f69c65;p=the-server-room.git The beeping doesn't need to be done by a daemon Using each_turn avoids needing to start a daemon. --- 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: