summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-29 01:53:56 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commitea7bfdcf7a3a9c0c928e042fcf239256b878b5d8 (patch)
treedf6283f2a5d44fc6ff98e6001fc34a7b1c65bc67 /weatbag
parentae6c874d790825891aefbcfd366749eaeb2fcf05 (diff)
custom message for first visit on n2w2
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n2w2.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py
index 6ad3b1f..6cfc252 100644
--- a/weatbag/tiles/n2w2.py
+++ b/weatbag/tiles/n2w2.py
@@ -1,7 +1,14 @@
class Tile:
+ def __init__(self):
+ self.first_visit = True
+
def describe(self):
- print("You are now on the island. In front of you there are some trees "
- "and a small path.\nFeeling adventurous?\n")
+ if self.first_visit:
+ print("You are now on the island. In front of you there are "
+ "some trees and a small path.\nFeeling adventurous?\n")
+ self.first_visit = False
+ else:
+ print("The beach is quiet. Nothing seems to be going on.")
def action(self, player, do):
print("Sorry, wat?!")