Browse Source

12/29/2022

BradDev
Joe DiPrima 3 years ago
parent
commit
25c417962e
  1. 9
      qmutants.py

9
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"):

Loading…
Cancel
Save