From 199a006384512d87aa8a55fbd486d63844d64697 Mon Sep 17 00:00:00 2001 From: Joe DiPrima Date: Sat, 31 Dec 2022 08:26:21 -0600 Subject: [PATCH] 12/31/2022 --- qmutants.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/qmutants.py b/qmutants.py index 9ae0f64..19abd04 100644 --- a/qmutants.py +++ b/qmutants.py @@ -1191,11 +1191,10 @@ class mutant(QWidget): self.command_str.emit("\r\n") #ion starvation - if result.find("You're starving for IONS!") != -1: - self.send_cmd("con gold-chunck\r\n") - self.auto_combat = True - self.heal = True - + if result.find("You're starving for IONS!") != -1 or result.find("You don't have enough ions to heal!") != -1: + self.mqtt_str.emit(self.user+" needs ions") + self.send_cmd("X\r\n") + #too heavy if self.wander and result.find("The weight of all your items forces you to the ground.") != -1: self.wander = False @@ -1218,7 +1217,7 @@ class mutant(QWidget): #self.exit_game() #Lighten - if self.wander and (result.find("It's too dark to see anything!") != -1 and self.path_step == 0): + if result.find("It's too dark to see anything!") != -1: if self.char_sel == 4: self.send_cmd("cast\r\n") else: