Rework setting mode and fix command which changes fit name

It was just broken before
This commit is contained in:
DarkPhoenix
2019-04-14 03:18:25 +03:00
parent c721869dfa
commit 9a6255cb29
10 changed files with 72 additions and 31 deletions

View File

@@ -85,6 +85,19 @@ class ModuleInfo:
return mod
def __eq__(self, other):
if not isinstance(other, ModuleInfo):
return False
return all((
self.itemID == other.itemID,
self.baseItemID == other.baseItemID,
self.mutaplasmidID == other.mutaplasmidID,
self.mutations == other.mutations,
self.chargeID == other.chargeID,
self.state == other.state,
self.spoolType == other.spoolType,
self.spoolAmount == other.spoolAmount))
def __repr__(self):
return makeReprStr(self, [
'itemID', 'baseItemID', 'mutaplasmidID', 'mutations',