projects
/
snowed-in.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add check of lantern_fuel_left > 0 for throw_rock
[snowed-in.git]
/
src
/
snowed-in.inf
diff --git
a/src/snowed-in.inf
b/src/snowed-in.inf
index 42b27c3044354302a2214339018af758ff804aff..0c4ce1a35fa647c6511c8595fe40f37b7b4033ac 100644
(file)
--- a/
src/snowed-in.inf
+++ b/
src/snowed-in.inf
@@
-573,8
+573,9
@@
Object southofcabin "South Of Cabin"
check_for_cabin_lighting();
! }
if (snowshoes has worn && lantern in player && eastofcabin hasnt
check_for_cabin_lighting();
! }
if (snowshoes has worn && lantern in player && eastofcabin hasnt
- visited) {
+ visited
&& lantern_fuel_left > 0
) {
throw_rock();
throw_rock();
+ print "^";
}
],
n_to frontdoor,
}
],
n_to frontdoor,
@@
-868,8
+869,10
@@
Object eastofcabin "East Of Cabin"
with description [;
print "It's dark outside. ";
check_for_cabin_lighting();
with description [;
print "It's dark outside. ";
check_for_cabin_lighting();
- if (cabin_has_electricity == 1 && lantern in player) {
+ if (cabin_has_electricity == 1 && lantern in player && lantern_fuel_left
+ > 0) {
throw_rock();
throw_rock();
+ print "^";
}
],
w_to window,
}
],
w_to window,