mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Core: add race mode to multidata and datastore (#4017)
* add race mode to multidata and datastore * have commonclient check race mode on connect and add it to the tooltip ui
This commit is contained in:
@@ -325,6 +325,7 @@ class CommonContext:
|
||||
"collect": "disabled",
|
||||
"remaining": "disabled",
|
||||
}
|
||||
self.race_mode: int = 0
|
||||
|
||||
# own state
|
||||
self.finished_game = False
|
||||
@@ -454,6 +455,7 @@ class CommonContext:
|
||||
if kwargs:
|
||||
payload.update(kwargs)
|
||||
await self.send_msgs([payload])
|
||||
await self.send_msgs([{"cmd": "Get", "keys": ["race_mode"]}])
|
||||
|
||||
async def console_input(self) -> str:
|
||||
if self.ui:
|
||||
|
Reference in New Issue
Block a user