From edc65428cd72107f8ce2661a0717d7cb5b305586 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Thu, 23 May 2013 16:16:03 +0300 Subject: added 'bribe the cat with catfood' option --- weatbag/tiles/n5w7.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/weatbag/tiles/n5w7.py b/weatbag/tiles/n5w7.py index 1986782..2fea283 100644 --- a/weatbag/tiles/n5w7.py +++ b/weatbag/tiles/n5w7.py @@ -60,6 +60,13 @@ class Tile: elif do == ["you","will","not","shoot","me"]: print("You dirty little human, I can only let you go now!\n") self.trapped = False + elif player.has("catfood") and (do[0] in words.use or do[0] in words.give) and "catfood" in do: + print("Do you think that if you bribe me with catfood I'll let " + "you leave?\nCatfood will not save you this time.\n" + "The fat cat steals one catfood and eats it. You should " + "be more carefull next time.") + player.take("catfood") + self.trapped = False else: print("Keep saying bullshit and your end is close!") else: @@ -82,3 +89,5 @@ class Tile: else: print("Finally you are out!") return True + +test_items = ["catfood"] -- cgit v1.3