From 4982768026601a8b1b39cf586e4d37236148e53f Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sun, 21 Apr 2013 20:56:13 +0300 Subject: Added placeholder files s1e2, s2e2, s3e1 with leave restrictions to prevent early access to the bug quest. --- weatbag/tiles/s1e2.py | 22 ++++++++++++++++++++++ weatbag/tiles/s2e2.py | 22 ++++++++++++++++++++++ weatbag/tiles/s3e1.py | 22 ++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 weatbag/tiles/s1e2.py create mode 100644 weatbag/tiles/s2e2.py create mode 100644 weatbag/tiles/s3e1.py diff --git a/weatbag/tiles/s1e2.py b/weatbag/tiles/s1e2.py new file mode 100644 index 0000000..9ea254f --- /dev/null +++ b/weatbag/tiles/s1e2.py @@ -0,0 +1,22 @@ +class Tile: + + def describe(self): + print("s1e2") + + 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 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 diff --git a/weatbag/tiles/s3e1.py b/weatbag/tiles/s3e1.py new file mode 100644 index 0000000..f5d3682 --- /dev/null +++ b/weatbag/tiles/s3e1.py @@ -0,0 +1,22 @@ +class Tile: + + def describe(self): + print("s1e2") + + 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 = { 'n' } + if direction in restricted_directions: + print("The undergrowth in that direction " + "is impassable. You turn back.") + return False + else: + return True -- cgit v1.3