Allow items to veto being taken.

This commit is contained in:
Andrew Miner
2018-05-28 15:31:56 -06:00
parent 56daf2ef62
commit 2e7772b488
2 changed files with 24 additions and 13 deletions
+4 -1
View File
@@ -2,10 +2,13 @@ window.STORY = s = new Story("A Walk Through My House")
# Items ################################################################################################################
boxOfTile = s.addItem("box of tiles", fixed: true)
boxOfTile = s.addItem("box of tiles")
boxOfTile.description =
"This appears to be a box of flooring tiles. The tiles appear to be a very light color of natural stone. It is
quite heavy."
boxOfTile.take = ->
s.log.writeln("Oof! It's too heavy.")
return false
hose = s.addItem("garden hose")
hose.description = "It's a pretty ordinary garden hose about 20' long."