From 25c417962e94222e717339cf4b59c52daa89b43e Mon Sep 17 00:00:00 2001 From: Joe DiPrima Date: Thu, 29 Dec 2022 15:28:34 -0600 Subject: [PATCH] 12/29/2022 --- qmutants.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qmutants.py b/qmutants.py index ed39b12..6a93f81 100644 --- a/qmutants.py +++ b/qmutants.py @@ -511,7 +511,7 @@ class mutant(QWidget): #wield timer def wield_trig(self): if self.in_combat and self.logged_in and self.in_play: - self.send_cmd("wie "+self.weapon+"\r\n") + self.send_cmd("wield "+self.weapon+"\r\n") #wander timer def wander_trig(self): @@ -781,7 +781,10 @@ class mutant(QWidget): def parse_stat(self, result): if self.stat_parsed == False: self.status += result - if result.find("(N)onstop") != -1 or result.find("(Q)uit") != -1 or result.find("(C)ontinue") != -1: + if (result.find("(N)onstop") != -1 + or result.find("(Q)uit") != -1 + or result.find("(C)ontinue") != -1 + or result.find("wield") != -1): self.status = "" self.stat_parsed = True @@ -1410,7 +1413,7 @@ class mutant(QWidget): #wield weapon if key==ord("w"): - self.send_cmd("wie "+self.weapon+"\r\n") + self.send_cmd("wield "+self.weapon+"\r\n") #drop item if key==ord("d"):