penguins_by_character_id dictionary

This commit is contained in:
Ben 2019-08-19 02:19:51 +01:00
parent 280e42d4ba
commit 3c4d8461f1
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,9 @@ async def handle_join_server(p, penguin_id: int, login_key: str):
p.server.penguins_by_id[p.data.id] = p p.server.penguins_by_id[p.data.id] = p
p.server.penguins_by_username[p.data.username] = p p.server.penguins_by_username[p.data.username] = p
if p.data.character is not None:
p.server.penguins_by_character_id[p.data.character] = p
p.joined_world = True p.joined_world = True

View File

@ -71,6 +71,7 @@ class Houdini:
self.penguins_by_id = {} self.penguins_by_id = {}
self.penguins_by_username = {} self.penguins_by_username = {}
self.penguins_by_character_id = {}
self.xt_listeners = XTListenerManager(self) self.xt_listeners = XTListenerManager(self)
self.xml_listeners = XMLListenerManager(self) self.xml_listeners = XMLListenerManager(self)