diff options
| author | Julian Irwin <julian.irwin@gmail.com> | 2013-01-09 00:08:31 -0600 |
|---|---|---|
| committer | Julian Irwin <julian.irwin@gmail.com> | 2013-01-09 00:08:31 -0600 |
| commit | 31ee9408bd3f8510ded20755f5a56cd6404aea73 (patch) | |
| tree | f7ed4a2c664ce2ea3646bf72c328ec3adac36de3 | |
| parent | 0e7d8f5218800643115b6d127356949f4574a0e0 (diff) | |
Fleshed out s2
| -rw-r--r-- | weatbag/tiles/s2.py | 34 | ||||
| -rw-r--r-- | weatbag/tiles/s3.py | 10 |
2 files changed, 38 insertions, 6 deletions
diff --git a/weatbag/tiles/s2.py b/weatbag/tiles/s2.py index 59f66e2..85e94c6 100644 --- a/weatbag/tiles/s2.py +++ b/weatbag/tiles/s2.py @@ -2,10 +2,32 @@ from weatbag import words class Tile: - def describe(self): - print( "The foliage along the path begins to thin and you " - "notice that you are now climbing a gentle slope.") + + def describe(self): + print("The foliage begins to thin and the path winds forwards " + "up a steep hillside. A rugged granite rockformation tops " + "the hill, its centerpiece two slabs of rock leaning together " + "to form a crude arch. Nondescript fields lie to the " + "East and West.") - def action(self, player, do): - # Nothing to do here yet. - print("Sorry, I don't understand") + def action(self, player, do): + # Nothing to do here yet. + print("Sorry, I don't understand") + + # Used for more colorfull invisible wall messages in leave. + wrong_direction_counter = 0 + + # Only allow movement to south, norht + def leave(self, player, direction): + if direction is 'e' or 'w': + if self.wrong_direction_counter <=1 : + print("There's nothing but non-descript fields over here. Better " + "not leave the path.") + else: + print("You spend an hour wandering through the field and confirm that " + "it is indeed nondescript. Upon returning to the path, the hilltop " + "appears ever more alluring.") + self.wrong_direction_counter += 1 + return False + else: + return True diff --git a/weatbag/tiles/s3.py b/weatbag/tiles/s3.py new file mode 100644 index 0000000..1f377f1 --- /dev/null +++ b/weatbag/tiles/s3.py @@ -0,0 +1,10 @@ +from weatbag import words + +class Tile: + def describe(self): + print( "The foliage along the path begins to thin and you " + "notice that you are now climbing a gentle slope.") + + def action(self, player, do): + # Nothing to do here yet. + print("Sorry, I don't understand") |
