summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/s1.py
blob: d1354ec6d8e6eeb994db960845f88ccb3df7652f (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("You push through the undergrowth - "
            "the path is overgrown but continues on...")
    
    def action(self, player, do):
        # Nothing to do here yet.
        print("Sorry, I don't understand")

    def leave(self, player, direction):
        restricted_directions = { 'e' }

        # I placed this restriction here to prevent 
        # early entrance to the bug quest
        # which should be started by going South from e1
        if direction in restricted_directions:
            print("The undergrowth in that direction "
                "is impassable. You turn back.")
            return False
        else:
            return True