summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weatbag/tiles/n1w1.py7
-rw-r--r--weatbag/tiles/n2w1.py46
-rw-r--r--weatbag/tiles/n2w2.py6
-rw-r--r--weatbag/tiles/n2w3.py4
-rw-r--r--weatbag/tiles/n2w4.py17
-rw-r--r--weatbag/tiles/n2w5.py8
-rw-r--r--weatbag/tiles/n3w1.py8
-rw-r--r--weatbag/tiles/n3w2.py14
-rw-r--r--weatbag/tiles/n3w3.py10
-rw-r--r--weatbag/tiles/n3w4.py8
10 files changed, 65 insertions, 63 deletions
diff --git a/weatbag/tiles/n1w1.py b/weatbag/tiles/n1w1.py
index aad8104..3a455cf 100644
--- a/weatbag/tiles/n1w1.py
+++ b/weatbag/tiles/n1w1.py
@@ -1,7 +1,8 @@
class Tile:
def describe(self):
- print("There is a small island northwest.\n"
- "Unfortunatelly, you can't swim so you need a transport to go there.\n"
+ print("\nThere is a small island northwest.\n"
+ "Unfortunatelly, you can't swim because the sea is full of "
+ "electric eels so you need a transport to go there.\n"
"Luckilly to the north you see 2 children with a raft sitting "
"under a tree." )
@@ -10,7 +11,7 @@ class Tile:
def leave(self, player, direction):
if direction == "w":
- print ("You can't go there by swimming, that part is full of "
+ print ("\nYou can't go there by swimming, that part is full of "
"electric eels.")
return False
else:
diff --git a/weatbag/tiles/n2w1.py b/weatbag/tiles/n2w1.py
index 86f7323..434f760 100644
--- a/weatbag/tiles/n2w1.py
+++ b/weatbag/tiles/n2w1.py
@@ -6,15 +6,15 @@ class Tile:
self.minutes = "40"
def describe(self):
- print("You see two children who you notice now are a boy and a girl.\n"
- "They are playing and running around a raft.")
+ print("\nYou see two children who you notice now are a boy and a girl. "
+ "\nThey are playing and running around a raft.")
if self.challenge_not_completed:
self.challenge()
else:
- print("They take you to the western island!")
+ print("\nThey take you to the western island!")
def challenge(self):
- print("You ask them to give it to you."
+ print("\nYou ask them to give it to you."
"The little boy laughs and replies: \n"
"So you think you are brave enough to go to that island? "
"Very well, but we cannot give you our raft. "
@@ -24,44 +24,44 @@ class Tile:
"It takes for me to transfer a person on the island exactly one "
"hour.\n"
"It takes double the time for my sister.\n"
- "If we combine our powers "
- "in how many minutes will we transfer you on the island?\n"
- "To make a guess, type a number followed by 'minutes'")
+ "If we combine our powers, "
+ "how many minutes will it take to transfer you on the island?\n"
+ "To make a guess, type a number followed by 'minutes'.")
def action(self, player, do):
if self.challenge_not_completed:
try:
if do[1] == "minutes":
if do[0] == self.minutes:
- print("Your guess have pleased me and my sister! "
- "Let's go!")
- print("The brother and sister will take you to the "
- "island.")
+ print("\nYour guess have pleased me and my sister! "
+ "\nLet's go!")
+ print("\nThe brother and sister will take you to the "
+ "island.")
self.challenge_not_completed = False
else:
- print("We're afraid this is not the correct answer. "
- "Try another one.")
+ print("\nWe're afraid this is not the correct answer. "
+ "\nTry another one.")
elif (do[0] in words.take) and (do[1] == "sister" or
do[1] == "girl"):
- print("You little bastard, leave my sister down!\n"
- "What kind of an asshole are you? Taking advantage of "
- "little children?\nWe will transfer you for free.")
- print("The brother and sister take you to the island!")
+ print("\nYou little bastard, leave my sister down!\n"
+ "What kind of an asshole are you? Taking advantage of "
+ "little children?\nWe will transfer you for free.")
+ print("\nThe brother and sister take you to the island!")
self.challenge_not_completed = False
elif (do[0] in words.take) and (do[1] == "brother" or
do[1] == "boy"):
- print("You bastard, take me down!\n"
- "We will transfer you for free!")
- print("The brother and sister take you to the island!")
+ print("\nYou bastard, take me down!"
+ "\nWe will transfer you for free!")
+ print("\nThe brother and sister take you to the island!")
self.challenge_not_completed = False
elif (do[0] in words.take) and self.challenge_not_completed:
- print("I told you we won't give you our raft, "
+ print("\nI told you we won't give you our raft, "
"you have to guess the correct amount of time!")
except:
- print("Please try guessing a number, like '42 minutes'.")
+ print("\nPlease try guessing a number, like '42 minutes'.")
def leave(self, player, direction):
if direction == "w" and self.challenge_not_completed:
- print ("You can't go there by swimming, that part is full of "
+ print ("\nYou can't go there by swimming, that part is full of "
"electric eels.")
return False
else:
diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py
index a7d8848..c9e82a9 100644
--- a/weatbag/tiles/n2w2.py
+++ b/weatbag/tiles/n2w2.py
@@ -1,14 +1,14 @@
class Tile:
def describe(self):
- print("You are now on the island. In front of you there are some trees "
- "and a small path. Feeling adventurous?")
+ print("\nYou are now on the island. In front of you there are some trees "
+ "and a small path.\nFeeling adventurous?")
def action(self, player, do):
print("Sorry, I don't understand")
def leave(self, player, direction):
if direction == "e":
- print ("You can't go back by swimming, that part is full of "
+ print ("\nYou can't go back by swimming, that part is full of "
"electric eels.")
return False
else:
diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py
index dadbbf9..3d1d1ad 100644
--- a/weatbag/tiles/n2w3.py
+++ b/weatbag/tiles/n2w3.py
@@ -1,6 +1,6 @@
class Tile:
def describe(self):
- print("You are walking through the trees. It looks like the path you "
+ print("\nYou are walking through the trees. It looks like the path you "
"took leads to a small wooden hut.\nYou saw a tree fall and it didn't "
"make any sound and WOW... that was weired because you were there and "
"observed it!")
@@ -9,5 +9,5 @@ class Tile:
# raises questions regarding observation and knowledge of reality.
def action(self, player, do):
- print("Sorry, I don't understand")
+ print("\nSorry, I don't understand")
diff --git a/weatbag/tiles/n2w4.py b/weatbag/tiles/n2w4.py
index 00eaa5d..a427d5e 100644
--- a/weatbag/tiles/n2w4.py
+++ b/weatbag/tiles/n2w4.py
@@ -7,30 +7,31 @@ class Tile:
def describe(self):
if self.opendoor:
- print("The hut's door is open and the kitties are playing with "
+ print("\nThe hut's door is open and the kitties are playing with "
"their momcat!")
else:
- print("You are standing in front of the hut's door. The hut looks "
- "very small and you wonder who could live there... It has a "
- "door but you can't open it because the doorknob is missing.")
+ print("\nYou are standing in front of the hut's door. The hut "
+ "looks very small and you wonder who could live there...\n"
+ "It has a door but you can't open it because the doorknob "
+ "is missing.")
def action(self, player, do):
if (do[0] in words.use) and do[1]=='doorknob':
if player.has('doorknob'):
player.take('doorknob')
- print("Doorknob fits fine, clicks and voila... Door is open!\n"
+ print("\nDoorknob fits fine, clicks and voila... Door is open!\n"
"\nYou are in a cozy living room with a cat and 5 kittens"
" resting on a couch.\nThere is another room at west.")
self.opendoor = True
else:
- print("You'll need a doorknob to open the door.")
+ print("\nYou'll need a doorknob to open the door.")
self.opendoor = False
else:
- print("Sorry, I don't understand.")
+ print("\nSorry, I don't understand.")
def leave(self, player, direction):
if direction=='w' and not self.opendoor:
- print("First you need to enter the hut.")
+ print("\nFirst you need to enter the hut.")
return False
else:
return True
diff --git a/weatbag/tiles/n2w5.py b/weatbag/tiles/n2w5.py
index 15c5b63..e88f27c 100644
--- a/weatbag/tiles/n2w5.py
+++ b/weatbag/tiles/n2w5.py
@@ -7,8 +7,8 @@ class Tile:
def describe(self):
if self.contents['catfood']:
- print("You look around and you see a shelf with catfood cans.\n"
- "I don't know about you, but a catfood can is always handy! "
+ print("\nYou look around and you see a shelf with catfood cans.\n"
+ "I don't know about you, but a catfood can is always handy!\n"
"Never know when you'll need to feed a kitty!")
def action(self, player, do):
@@ -21,7 +21,7 @@ class Tile:
def take_catfood(self, player):
if transfer('catfood', self.contents, player.inventory, n=2):
- print("You did wise. You took the catfood!")
+ print("\nYou did wise. You took the catfood!")
else:
- print("There is nothing here.")
+ print("\nThere is nothing here.")
diff --git a/weatbag/tiles/n3w1.py b/weatbag/tiles/n3w1.py
index 5eb7d18..8ff6a6c 100644
--- a/weatbag/tiles/n3w1.py
+++ b/weatbag/tiles/n3w1.py
@@ -1,17 +1,17 @@
class Tile:
def describe(self):
- print("The beach is quiet. You see on the south children playing.")
+ print("\nThe beach is quiet. On the south are children playing.")
def action(self, player, do):
- print("Sorry, I don't understand")
+ print("\nSorry, I don't understand")
def leave(self, player, direction):
if direction=='w':
- print("I'm afraid you can't go west.\nThe sea on that part is "
+ print("\nI'm afraid you can't go west.\nThe sea on that part is "
"fool of electric eels and you don't have a transport.")
return False
elif direction=='e':
- print("There is the side of a cave in front of you.\nYou can't go "
+ print("\nThere is the side of a cave in front of you.\nYou can't go "
"east.")
return False
return True
diff --git a/weatbag/tiles/n3w2.py b/weatbag/tiles/n3w2.py
index d1266f2..5c0add3 100644
--- a/weatbag/tiles/n3w2.py
+++ b/weatbag/tiles/n3w2.py
@@ -7,7 +7,7 @@ class Tile:
def describe(self):
if not self.give_catfood:
- print("You are at the beach and there is an old man with an "
+ print("\nYou are at the beach and there is an old man with an "
"enormous beard that is getting his little boat ready to go "
"across to the mainland.\nNaturally, you are asking him to "
"take you in his boat.\nThe old man replies:\nOf course I "
@@ -15,7 +15,7 @@ class Tile:
"some catfood so I can feed the kitties across in the "
"mainland!")
else:
- print("There's the old fisherman with his boat, he can take you "
+ print("\nThere's the old fisherman with his boat, he can take you "
"across if you like!")
# I only added words.use because player might
@@ -28,19 +28,19 @@ class Tile:
if self.give_catfood == False:
player.take('catfood')
self.give_catfood = True
- print("Great! Now we can sail!")
+ print("\nGreat! Now we can sail!")
else:
player.take('catfood')
- print("Oh how nice of you. You are the best!")
+ print("\nOh how nice of you. You are the best!")
elif len(do) > 1:
- print("I have no use for that.")
+ print("\nI have no use for that.")
else:
- print("Sorry, I don't understand.")
+ print("\nSorry, I don't understand.")
def leave(self, player, direction):
if direction=='e'and not self.give_catfood:
- print("You can't swim, remember the electric eels? You need a "
+ print("\nYou can't swim, remember the electric eels? You need a "
"transport to go across.")
return False
return True
diff --git a/weatbag/tiles/n3w3.py b/weatbag/tiles/n3w3.py
index 2989c04..42bec81 100644
--- a/weatbag/tiles/n3w3.py
+++ b/weatbag/tiles/n3w3.py
@@ -7,20 +7,20 @@ class Tile:
def describe(self):
if self.contents['doorknob']:
- print("As you walk through the path you find something shiny on "
+ print("\nAs you walk through the path you find something shiny on "
"the ground beside some rocks.\nIt looks like a brass doorknob.")
else:
- print("There is nothing to do here, all you see is your path and "
+ print("\nThere is nothing to do here, all you see is your path and "
"the trees around!")
def action(self, player, do):
if (do[0] in words.take) and ('doorknob' in do):
self.take_doorknob(player)
else:
- print("Sorry, I don't understand.")
+ print("\nSorry, I don't understand.")
def take_doorknob(self, player):
if transfer('doorknob', self.contents, player.inventory):
- print("You pick up the doorknob.")
+ print("\nYou pick up the doorknob.")
else:
- print("There is nothing here.")
+ print("\nThere is nothing here.")
diff --git a/weatbag/tiles/n3w4.py b/weatbag/tiles/n3w4.py
index 928f83b..fff19cf 100644
--- a/weatbag/tiles/n3w4.py
+++ b/weatbag/tiles/n3w4.py
@@ -1,9 +1,9 @@
class Tile:
def describe(self):
- print("Looks like you are in a walking mood because you still follow "
- "the path. You hear birds singing, some small waves on the background, "
+ print("\nLooks like you are in a walking mood because you still follow "
+ "the path.\nYou hear birds singing, some small waves on the background, "
"there is a nice flowery smell, rays of sun make the tree sceenery "
- "heavenly... I totaly get you, it's a nice path to have a walk!")
+ "heavenly...\nI totaly get you, it's a nice path to have a walk!")
def action(self, player, do):
- print("Sorry, I don't understand")
+ print("\nSorry, I don't understand")