diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-22 01:47:18 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:17 +0300 |
| commit | ce8936e360c1d07a3aa72c24ca23b26449781329 (patch) | |
| tree | c186b02032876863cbfe059b2453cd2ec07d3f66 /weatbag | |
| parent | f2ccd5bd0de5f158467a60a06edcf637a963a3d8 (diff) | |
changed possision of previous tile/made new tile
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/n2w2.py | 47 |
1 files changed, 14 insertions, 33 deletions
diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py index c4f8575..a7d8848 100644 --- a/weatbag/tiles/n2w2.py +++ b/weatbag/tiles/n2w2.py @@ -1,34 +1,15 @@ -from weatbag import words -from weatbag.utils import transfer - class Tile: - def __init__(self): - self.contents = {'doorknob': 1} - - def describe(self): - print("You are now on the island.") - if self.contents['doorknob']: - print("As you walk around you find something shiny on the ground. " - "It looks like a brass doorknob.") - else: - print("There is nothing interesting here") - def action(self, player, do): - if (do[0] in words.take) and ('doorknob' in do): - self.take_doorknob(player) - - else: - print("Sorry, I don't understand.") - - def take_doorknob(self, player): - if transfer('doorknob', self.contents, player.inventory): - print("You pick up the doorknob.") - else: - print("There is nothing here.") - - def leave(self, player, direction): - if direction == "e": - print ("You can't go back by swimming, that part is full of " - "electric eels.") - return False - else: - return True + def describe(self): + print("You are now on the island. In front of you there are some trees " + "and a small path. Feeling adventurous?") + + def action(self, player, do): + print("Sorry, I don't understand") + + def leave(self, player, direction): + if direction == "e": + print ("You can't go back by swimming, that part is full of " + "electric eels.") + return False + else: + return True |
