From 0a0046f195888ff6cad1da2e5c0e9912bc674906 Mon Sep 17 00:00:00 2001 From: Shadow15510 Date: Sun, 22 Aug 2021 17:08:16 +0200 Subject: [PATCH] fix bug on exit --- asci_lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asci_lib.py b/asci_lib.py index b62397e..757edcd 100644 --- a/asci_lib.py +++ b/asci_lib.py @@ -156,7 +156,7 @@ class Asci: # Read the dialogue event = read_event(self.data[0], self._game_event(self.data[0], self.data[1], x, y, self.stat)) - + # XP and stat modification self.data[0] += event.xp_earned for index in range(len(event.stat)): @@ -223,6 +223,7 @@ class Asci: self._keyboard(key) + if self.stat[0] <= 0: self.stat[0] = 100 return self.stat, self.data