summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-05-13 00:07:31 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-05-13 00:07:31 +0300
commitc6e475c6dbf568ab56f0f86a20f8f2e6138c0e9c (patch)
tree3cce1b706d7001a482b22d903dc078c9067eed8e /weatbag
parent5acb9a792eec57714ed18f7d41051916be5c7f30 (diff)
added action for n4w7
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n4w7.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/weatbag/tiles/n4w7.py b/weatbag/tiles/n4w7.py
index 75927dd..4735623 100644
--- a/weatbag/tiles/n4w7.py
+++ b/weatbag/tiles/n4w7.py
@@ -23,8 +23,14 @@ class Tile:
"beach waters and about a dozen of kitties playing around.\n")
def action(self, player, do):
- print("Sorry, I don't understand.\n")
-
+ if do[0] in words.use and do[1] == "mice" and do[2]=="cream":
+ if player.has("cream") and player.has("mice"):
+ player.take("cream")
+ player.take("mice")
+ player.give("mice cream")
+ print("Balls of tasty omnom mice cream fall from your "
+ "hands! The kittens look sooooo pleased!")
+ else:
+ print("You'll need some mice and some cream.")
test_items = ['mice', 'cream']
-