summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/s2e2.py
blob: 5665a4eeb78efb69c6a84794926aaa393551a05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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