Skip to content

Commit

Permalink
rework client process messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrochu committed Nov 30, 2024
1 parent 620bfbc commit 26aaf89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions worlds/zork_grand_inquisitor/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ async def disconnect(self, allow_autoreconnect: bool = False):
self.items_received = []
self.locations_info = {}

self.can_display_process_message = True

await super().disconnect(allow_autoreconnect)

def on_package(self, cmd: str, _args: Any) -> None:
Expand Down Expand Up @@ -246,12 +244,13 @@ async def controller(self):

if self.process_attached_at_least_once:
process_message = (
"Lost connection to Zork Grand Inquisitor process. Please restart the game and use the /zork "
"command to reattach."
"Connection to the Zork Grand Inquisitor process was lost. Ensure you are connected "
"to an Archipelago server and the game is running, then use the /zork command to reconnect."
)
else:
process_message = (
"Please use the /zork command to attach to a running Zork Grand Inquisitor process."
"To start playing, connect to an Archipelago server and use the /zork command to "
"link to an active Zork Grand Inquisitor process."
)

if self.can_display_process_message:
Expand Down

0 comments on commit 26aaf89

Please sign in to comment.