diff options
Diffstat (limited to 'weatbag/tiles/s2e2.py')
| -rw-r--r-- | weatbag/tiles/s2e2.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/weatbag/tiles/s2e2.py b/weatbag/tiles/s2e2.py new file mode 100644 index 0000000..5665a4e --- /dev/null +++ b/weatbag/tiles/s2e2.py @@ -0,0 +1,22 @@ +class Tile: + + def describe(self): + print("s2e2") + + def action(self, player, do): + pass + + # For future hackers: + # I have placed this restriction here so that + # the player cannot accidentaly enter + # the bug quest early. (which should start by going south from e1) + # Unless the bug quest is appropriately modified, + # please do not remove this restriction from this tile. + def leave(self, player, direction): + restricted_directions = { 'w' } + if direction in restricted_directions: + print("The undergrowth in that direction " + "is impassable. You turn back.") + return False + else: + return True |
