Browse Source

12/22/2022

BradDev
melancholytron 3 years ago
parent
commit
ae483b9e5f
  1. 4
      qmutants.py

4
qmutants.py

@ -366,6 +366,7 @@ class mutant(QWidget):
def heal_trig(self):
if self.heal:
self.command_str.emit("heal\r\n")
# self.mqtt_str_quiet.emit(self.user," is healing." )
#wield timer
def wield_trig(self):
@ -435,6 +436,7 @@ class mutant(QWidget):
if item_l == item:
self.command_str.emit("get "+item+"\r\n")
self.command_str.emit("con "+item+"\r\n")
self.mqtt_str_quiet.emit(self.user," converted " + item )
try:
self.local_items.remove(item_l)
except:
@ -555,6 +557,7 @@ class mutant(QWidget):
if result.find("You suffer") != -1:
self.hits = self.hits + 1
if self.hits == 2:
self.command_str.emit("heal\r\n")
self.command_str.emit("heal\r\n")
self.hits = 0
@ -601,6 +604,7 @@ class mutant(QWidget):
def script_function(self,function):
if function == "DEPOSIT":
self.command_str.emit("deposit "+str(self.riblets)+"\r\n")
self.mqtt_str_quiet.emit(self.user," deposited "+str(self.riblets)+" riblets" )
self.riblets = 0
if function == "STOCK":
self.stock_items()

Loading…
Cancel
Save