Skip to content
Snippets Groups Projects
Commit 2cd697d5 authored by Harry Wyatt's avatar Harry Wyatt
Browse files

Teneously fixed an issue causing an issue with dying

parent 5ba6e35b
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ class Golbin(Enemy):
# how to scale stats with levels
self.hp_scale = 2
self.attack_scale = 1
self.attack_scale = 3
self.defense_scale = 3
self.luck_scale = 3
......@@ -110,7 +110,7 @@ class Wolf(Enemy):
# how to scale stats with levels
self.hp_scale = 3
self.attack_scale = 4
self.attack_scale = 5
self.defense_scale = 1
self.luck_scale = 4
......
......@@ -12,6 +12,10 @@ def populate_enemies():
for room_id in rooms:
room = rooms[room_id]
# Clear room of all items
room.enemies = []
room.items = []
if room.cleared == False:
random_monster = random.choice(enemy_classes)
......
......@@ -685,6 +685,8 @@ def loadingbar():
# This is the entry point of our program
def main():
global player
clear()
loading = ['Loading -', 'Loading \\', 'Loading |', 'Loading /']
for i in range(10):
......@@ -703,8 +705,8 @@ def main():
while True:
clear()
populate_rooms()
populate_enemies()
populate_rooms()
player.fought_boss = False
print("You suddenly wake up in an ancient abandoned manner house. Every window boarded, every door to the real world locked...")
print("The old house finds itself inhabited by a plethora of strange monsters, of which many seem violent. It is up to you...")
......@@ -749,6 +751,9 @@ def main():
print("You beat the game, well done!!")
time.sleep(0.5)
input("> Press enter to play again.")
# Reset the player var
player = Player()
if __name__ == "__main__":
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment