diff options
| -rw-r--r-- | weatbag/tiles/n2w4.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/weatbag/tiles/n2w4.py b/weatbag/tiles/n2w4.py new file mode 100644 index 0000000..961409a --- /dev/null +++ b/weatbag/tiles/n2w4.py @@ -0,0 +1,20 @@ +from weatbag import words +from weatbag.utils import transfer + + +class Tile: + def describe(self): + print("You are standing in front of the hut.\nIt has a door but you " + "can't open it because the doorknob is missing.") + + def action(self, player, do): + if (do[0] in words.use) and do[1]=='doorknob': + if player.has('doorknob'): + player.give('doorknob') + print("Doorknob fits fine, clicks and voila! Door is open!") + else: + print("You'll need a doorknob to open the door.") + else: + print("Sorry, I don't understand.") + +test_items = ['doorknob'] |
