fixed instance bug with member variables

This commit is contained in:
2022-10-17 11:57:15 +02:00
parent 5aa2b59b37
commit 6941b2667a
3 changed files with 75 additions and 82 deletions

View File

@@ -22,16 +22,17 @@ HSV_DEFAULT = HsvFilter(0, 0, 0, 179, 255, 255, 0, 0, 0, 0)
class Equipment:
needles = []
hsvs = []
tresholds = []
masks = []
emitters = []
def __init__(self, overlay):
self.overlay = overlay
self.config = UserConfigs()
self.needles = []
self.hsvs = []
self.tresholds = []
self.masks = []
self.emitters = []
self.EMITTER_TO_USE = str(overlay.emitter_use.get())
self.SPAWN_COUNT = int(overlay.spawn_use.get())
self.ENERGY_TO_USE = int(overlay.energy_use.get())