Fix a bug with not wearing the snow suit
[snowed-in.git] / src / snowed-in.inf
index 30b804332afbb11607492f09a7e612c2ae4ac2dc..0b17c6b9504a0b59c3525e17effd2c832a527cbb 100644 (file)
@@ -23,7 +23,7 @@ Constant Headline
     ^Ongoing development: https://jxself.org/git/?p=snowed-in.git
     ^Send bugs and feedback by email to j@@64jxself.org.
     ^IFID DE9FA2E5-4EC7-4166-9218-E56EFA1DF40F
-    ^Copyright (C) 2021 Jason Self
+    ^Copyright (C) 2021 Jason Self <j@@64jxself.org>
     ^You can change and share this game under the terms of the GNU 
     Affero General Public License as published by the Free Software 
     Foundation (FSF), either version 3 of the License, or (at your 
@@ -35,7 +35,8 @@ Constant Headline
 Include "parser";
 Include "verblib";
 Release 0;
-Serial "210501";
+Serial "210605";
+Include "src/forest.inf";
 
 Object  mainroom "Main Room"
   with  description 
@@ -158,8 +159,8 @@ Object  lantern "copper lantern" coffeetable
 Object  television "flat-screen TV" mainroom
   with  name 'TV' 'television' 'flat' 'screen' 'flat-screen',
   with  description 
-             "The flat-screen TV looks fairly modern but it's been 
-             broken in a fight and the screen is dangling out.",
+            "The flat-screen TV looks fairly modern but it's been 
+            broken in a fight and the screen is dangling out.",
         before [;
           Take, Pull, Push, PushDir, Turn:
             print_ret (The) self, " is firmly mounted to the wall.";
@@ -463,11 +464,10 @@ Object  snowsuit "snowsuit" suitcase
             kitchenette && location ~= bedroom && location ~= thedark &&
             snowsuit hasnt worn) {
                 body_temperature = --body_temperature;
-                print body_temperature;
             }
             if (location == mainroom || location == office || location ==
-            kitchenette || location == bedroom || location ~= thedark ||
-            snowsuit has worn && body_temperature < 20) {
+            kitchenette || location == bedroom || snowsuit has worn 
+            && body_temperature < 20) {
                 body_temperature = ++body_temperature;
             }
             if (body_temperature == 0) {
@@ -547,7 +547,7 @@ Object  snowshoes "snowshoes" bedroom
         ],
   has   pluralname clothing;
 
-Object  southofcabin "South Of Cabin"
+Forest  southofcabin "South Of Cabin"
   with  description [;
             print "The wind is howling, and there's snow flying everywhere.";
             if (snowsuit hasnt worn)
@@ -560,9 +560,10 @@ Object  southofcabin "South Of Cabin"
         ],
         n_to frontdoor,
         e_to eastofcabin,
+        w_to westofcabin,
   has   light;
 
-Object  eastofcabin "East Of Cabin"
+Forest  eastofcabin "East Of Cabin"
   with  description [;
             print "It's dark outside. ";
             if (lightbulb has on) {
@@ -586,6 +587,14 @@ Object  eastofcabin "East Of Cabin"
         s_to southofcabin,
   has   light;
 
+Forest  westofcabin "Westh Of Cabin"
+  with  description 
+            "The snow is falling so fast that you can barely see 
+            anything. You can't even be sure you're going in the right 
+            direction.",
+        s_to southofcabin,
+  has   light;
+
 [ Initialise;
     Location = mainroom;
     thedark.description = 
@@ -668,9 +677,9 @@ Object  grue "grue" thedark
                   4:
                     "^You hear the sound of shuffling feet outside.";
                   5:
-                    "^You hear a deep guttural sound from outside that sends a chill down your spine.";
-                  6:
                     "^You hear something sniffing around the cabin.";
+                  6:
+                    "^You hear a deep guttural sound from outside that sends a chill down your spine.";
                   7:
                     "^You hear something scratching on the cabin walls from outside.";
                   8:
@@ -758,4 +767,5 @@ Extend 'climb'
     * 'through' / 'out' / 'via' noun -> Go;
 
 Extend 'go'
-    * 'through' / 'out' / 'via' noun -> Go;
\ No newline at end of file
+    * 'through' / 'out' / 'via' noun -> Go;
+