From: Jason Self Date: Sat, 5 Jun 2021 17:06:50 +0000 (-0700) Subject: Fix a bug with not wearing the snow suit X-Git-Tag: r1~8 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7b61c4eb051a133cb17e084bdfccdf851f0e9794;p=snowed-in.git Fix a bug with not wearing the snow suit The idea is that you're supposed to eventually freeze to death if you're outside without it for too long. This conditional is problematic in that location ~= thedark causes the problem. The outside of the cabin area meets that criteria because it is indeed not thedark so that raises the body temperature back up, so it doesn't keep going down. --- diff --git a/src/snowed-in.inf b/src/snowed-in.inf index 98bf07e..0b17c6b 100644 --- a/src/snowed-in.inf +++ b/src/snowed-in.inf @@ -36,7 +36,6 @@ Include "parser"; Include "verblib"; Release 0; Serial "210605"; - Include "src/forest.inf"; Object mainroom "Main Room" @@ -160,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."; @@ -467,8 +466,8 @@ Object snowsuit "snowsuit" suitcase body_temperature = --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) { @@ -589,14 +588,13 @@ Forest eastofcabin "East Of Cabin" has light; Forest westofcabin "Westh Of Cabin" - with description + 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 = @@ -769,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; +