From a9aab11c1caa71dfd7b44d3f4a0d7eb239ba8eb6 Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Fri, 19 Apr 2013 15:07:05 +0300 Subject: Fixed some grammatical and spelling errors. --- weatbag/tiles/s2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weatbag/tiles/s2.py') diff --git a/weatbag/tiles/s2.py b/weatbag/tiles/s2.py index 13b6d83..474eb55 100644 --- a/weatbag/tiles/s2.py +++ b/weatbag/tiles/s2.py @@ -5,7 +5,7 @@ class Tile: def describe(self): print("To the South, the foliage begins to thin and the path winds " - "forwards up a steep hillside. A rugged granite rockformation tops " + "forward up a steep hillside. A rugged granite rock formation tops " "the hill, its centerpiece two slabs of rock leaning together " "to form a crude arch." ) -- cgit v1.3 From 4005286d49e8d8f3f6f0f5469104102f6141fa0e Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sat, 20 Apr 2013 23:32:18 +0300 Subject: leave restriction for s2 and indentation style fix --- weatbag/tiles/s2.py | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'weatbag/tiles/s2.py') diff --git a/weatbag/tiles/s2.py b/weatbag/tiles/s2.py index 474eb55..4e417d0 100644 --- a/weatbag/tiles/s2.py +++ b/weatbag/tiles/s2.py @@ -3,14 +3,27 @@ from weatbag import words class Tile: - def describe(self): - print("To the South, the foliage begins to thin and the path winds " - "forward up a steep hillside. A rugged granite rock formation tops " - "the hill, its centerpiece two slabs of rock leaning together " - "to form a crude arch." ) - - def action(self, player, do): - # Nothing to do here yet. - print("Sorry, I don't understand") + def describe(self): + print("To the South, the foliage begins to thin and the path winds " + "forward up a steep hillside. A rugged granite rock formation tops " + "the hill, its centerpiece two slabs of rock leaning together " + "to form a crude arch." ) + + 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 + -- cgit v1.3