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: