From c6e475c6dbf568ab56f0f86a20f8f2e6138c0e9c Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 13 May 2013 00:07:31 +0300 Subject: added action for n4w7 --- weatbag/tiles/n4w7.py | 12 +++++++++--- 1 file 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'] - -- cgit v1.3