From: Jason Self Date: Fri, 18 Jun 2021 02:43:24 +0000 (-0700) Subject: Update to serial 210617 X-Git-Tag: r1~6 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2b1b568330f322a7ae5906040bfba03dd8fe3298;p=snowed-in.git Update to serial 210617 --- diff --git a/src/snowed-in.inf b/src/snowed-in.inf index 0b17c6b..6929991 100644 --- a/src/snowed-in.inf +++ b/src/snowed-in.inf @@ -35,7 +35,7 @@ Constant Headline Include "parser"; Include "verblib"; Release 0; -Serial "210605"; +Serial "210617"; Include "src/forest.inf"; Object mainroom "Main Room" @@ -206,6 +206,7 @@ Object lightsocket "light socket" mainroom give kitchenette light; give bedroom light; give eastofcabin light; + give southofcabin light; } ], has scenery container transparent open; @@ -221,6 +222,7 @@ Object lightbulb "light bulb" lightsocket give kitchenette light; give bedroom light; give eastofcabin light; + give southofcabin light; } else { print_ret @@ -242,6 +244,7 @@ Object lightbulb "light bulb" lightsocket give kitchenette ~light; give bedroom ~light; give eastofcabin ~light; + give southofcabin ~light; ], has switchable on; @@ -466,8 +469,8 @@ Object snowsuit "snowsuit" suitcase body_temperature = --body_temperature; } if (location == mainroom || location == office || location == - kitchenette || location == bedroom || snowsuit has worn - && body_temperature < 20) { + kitchenette || location == bedroom || snowsuit has worn && body_temperature + < 20) { body_temperature = ++body_temperature; } if (body_temperature == 0) { @@ -554,34 +557,42 @@ Forest southofcabin "South Of Cabin" 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; +[ 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, @@ -707,6 +718,7 @@ Object grue "grue" thedark give kitchenette ~light; give bedroom ~light; give eastofcabin ~light; + give southofcabin ~light; } return true; ], @@ -767,5 +779,4 @@ Extend 'climb' * 'through' / 'out' / 'via' noun -> Go; Extend 'go' - * 'through' / 'out' / 'via' noun -> Go; - + * 'through' / 'out' / 'via' noun -> Go; \ No newline at end of file