diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-22 23:34:13 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:17 +0300 |
| commit | d9a5554c4bc5d9fef1bd3bed0061b1e3d84ef259 (patch) | |
| tree | 014eb6595de1647aceebf9d5bec7cbcc0fd48c2d /weatbag | |
| parent | 53510b2113afe79d1e6f07a1e46e414a9b64a2fe (diff) | |
fixed description
Diffstat (limited to 'weatbag')
| -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'] |
