^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
Include "parser";
Include "verblib";
Release 0;
-Serial "210501";
+Serial "210617";
+Include "src/forest.inf";
Object mainroom "Main Room"
with description
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.";
give kitchenette light;
give bedroom light;
give eastofcabin light;
+ give southofcabin light;
}
],
has scenery container transparent open;
give kitchenette light;
give bedroom light;
give eastofcabin light;
+ give southofcabin light;
}
else {
print_ret
give kitchenette ~light;
give bedroom ~light;
give eastofcabin ~light;
+ give southofcabin ~light;
],
has switchable on;
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) {
],
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)
print
" It's really cold and
you're not dressed for this weather.";
- print
- " The snow stings your face and you
- can barely see three feet in front of you.^";
+ if (frontdoor has open) {
+ check_for_cabin_lighting();
+ }
],
n_to frontdoor,
e_to eastofcabin,
+ w_to westofcabin,
has light;
-Object eastofcabin "East Of Cabin"
+[ check_for_cabin_lighting;
+ if (lightbulb has on) {
+ print
+ "The light from inside the cabin only penetrates
+ a few feet from the building. ";
+ }
+ else
+ if (lantern in player && lantern has on) {
+ print
+ "The lantern provides the only source of
+ light. ";
+ }
+ if (location has light)
+ print
+ "The snow stings your face and you can barely see three feet in
+ front of you. ";
+ if (snowshoes in player && snowshoes has worn) {
+ print
+ "The snowshoes are doing their job by making sure
+ you don't sink into the snow.^";
+ }
+];
+
+Forest eastofcabin "East Of Cabin"
with description [;
print "It's dark outside. ";
- if (lightbulb has on) {
- print
- "The light from inside the cabin only penetrates
- a few feet from the building. ";
- }
- else
- if (lantern in player && lantern has on) {
- print
- "The lantern provides the only source of
- light. ";
- }
- if (snowshoes in player && snowshoes has worn) {
- print
- "The snowshoes are doing their job by making sure
- you don't sink into the snow.^";
- }
+ check_for_cabin_lighting();
],
w_to window,
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 =
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:
give kitchenette ~light;
give bedroom ~light;
give eastofcabin ~light;
+ give southofcabin ~light;
}
return true;
],