Implement working character associations with SSO character
This commit is contained in:
@@ -205,11 +205,14 @@ class HandledImplantBoosterList(HandledList):
|
||||
HandledList.append(self, thing)
|
||||
|
||||
|
||||
class HandledSsoCharacterList(HandledList):
|
||||
class HandledSsoCharacterList(list):
|
||||
def append(self, character):
|
||||
for x in self:
|
||||
print(x)
|
||||
HandledList.append(self, character)
|
||||
old = next((x for x in self if x.client == character.client), None)
|
||||
if old is not None:
|
||||
pyfalog.warning("Removing SSO Character with same hash: {}".format(repr(old)))
|
||||
list.remove(self, old)
|
||||
|
||||
list.append(self, character)
|
||||
|
||||
|
||||
class HandledProjectedModList(HandledList):
|
||||
|
||||
Reference in New Issue
Block a user