Skip to content

Commit

Permalink
Merge branch 'main' into test12
Browse files Browse the repository at this point in the history
  • Loading branch information
AnneMiriam authored Jan 5, 2024
2 parents 736cabe + 496cecc commit 9e6bbde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 8 additions & 8 deletions lib/models/game.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import random
# from sys import settrace
# from models.__init__ import CURSOR, CONN
from models.items import *
from models.enemy import Enemy
# from data.default_enemies import default_enemies
Expand Down Expand Up @@ -127,7 +125,7 @@ def random_encounter(self):
BlackCat,
Poltergeist,
BlackWidow,
#Enemy.find_by_id(-1),
# Enemy.find_by_id(-1),
]
random_enemy_type = random.choice(enemy_types)
random_enemy = random_enemy_type()
Expand Down Expand Up @@ -328,7 +326,7 @@ def return_staircase(self):
output_slow(room.return_text())
print()
print(
"1. Go to the fourth floor door \n2. Go to the third floor door \n3. Go to the second floor door \n4. Go to the first floor door \n5. Go to the entryway \n6. Return to attic room \n7. Check inventory"
"1. Go to the fourth floor door \n2. Go to the third floor door \n3. Go to the second floor door \n4. Go to the first floor door \n5. Go to the entryway \n6. Return to attic room \n7. Speak with the specter \n8. Check inventory"
)
choice = input("What will you do? >> ")
if choice == "1":
Expand All @@ -344,6 +342,8 @@ def return_staircase(self):
if choice == "6":
Game.return_attic_room(self)
if choice == "7":
Game.go_trading(self)
if choice == "8":
self.player.print_inventory()
Game.return_staircase(self)

Expand All @@ -361,7 +361,7 @@ def go_fourth_floor(self):
print()
output_slow(room.intro_text())
print()
print("1. Return to the staircase \n2.Check inventory")
print("1. Return to the staircase \n2. Check inventory")
choice = input("What will you do? >> ")
if choice == "1":
Game.return_staircase(self)
Expand Down Expand Up @@ -471,7 +471,7 @@ def go_first_floor_window(self):
if random_fate < 5:
print()
output_slow(
"You step onto the railing and almost loose your footing. 'That was close', you thought. You can vaguely see the ground below, it doesn't seem that far. You hear a low, rumbling laugh, like the tower itself is laughing. You know it is now or never! You take a deep breath and jump. \n \n Your feet hit the ground, a stinging pain rushes through them, but you are alive. And FREE!"
"You step onto the railing and almost lose your footing. You fumble for a moment, terror beginning to well up in your stomach, but you are able to stabilize. You let out a sigh of relief and take a look around. You can vaguely see the ground below, it doesn't seem that far. You hear a low, rumbling laugh, like the tower itself is laughing. You know it is now or never! You take a deep breath and jump. \n \n Your feet hit the ground - a stinging pain rushes through them, but you are alive. And FREE!"
)
output_slower("YOU HAVE ESCAPED DEATH... FOR NOW!")
exit()
Expand All @@ -497,7 +497,7 @@ def go_first_floor(self):
print()
output_slow(room.intro_text())
print()
print("1.Go to the window \n2. Return to staircase \n3. Check inventory")
print("1. Go to the window \n2. Return to staircase \n3. Check inventory")
choice = input("What will you do? >> ")
if choice == "1":
Game.go_first_floor_window(self)
Expand All @@ -510,7 +510,7 @@ def go_first_floor(self):
def go_entryway(self):
room = EntryWay()
encounter_chance = random.randint(0, 9)
print(f"Encounter chance: {encounter_chance}")
# print(f"Encounter chance: {encounter_chance}")
if encounter_chance < 2:
self.random_encounter()
if self.current_enemy:
Expand Down
5 changes: 0 additions & 5 deletions lib/models/rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ def intro_text(self):
return """The wind seems to be less fierce down here. The rain, also, seems lighter. It's still dark, but you think you can finally see the bottom of the tower. Above you, you see the balcony that must lead to the third floor room."""


class WindowOption(MapRoom):
def intro_text(self):
return """"""


class EntryWay(MapRoom):
def intro_text(self):
return """You reach the bottom of the stairs and are greeted by a yawning entryway, its high walls lined with iron lanterns holding flickering candles. Before you are a set of heavy double doors, stained a rich reddish-brown, intricately carved with scenes of mortals fleeing in terror from a skeletal figure in billowing robes wielding a scythe. The path that leads to the doors is lined with statues of similar skeletal figures.\nThough they have no eyes, you could swear you can feel them watching you.
Expand Down

0 comments on commit 9e6bbde

Please sign in to comment.