From ea7bfdcf7a3a9c0c928e042fcf239256b878b5d8 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 29 Apr 2013 01:53:56 +0300 Subject: custom message for first visit on n2w2 --- weatbag/tiles/n2w2.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'weatbag/tiles/n2w2.py') 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?!") -- cgit v1.3