mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Core: move race_mode to read_data instead of stored_data (#4020)
* move race_mode to read_data * add race_mode to docs
This commit is contained in:
@@ -325,7 +325,6 @@ class CommonContext:
|
||||
"collect": "disabled",
|
||||
"remaining": "disabled",
|
||||
}
|
||||
self.race_mode: int = 0
|
||||
|
||||
# own state
|
||||
self.finished_game = False
|
||||
@@ -455,7 +454,7 @@ class CommonContext:
|
||||
if kwargs:
|
||||
payload.update(kwargs)
|
||||
await self.send_msgs([payload])
|
||||
await self.send_msgs([{"cmd": "Get", "keys": ["race_mode"]}])
|
||||
await self.send_msgs([{"cmd": "Get", "keys": ["_read_race_mode"]}])
|
||||
|
||||
async def console_input(self) -> str:
|
||||
if self.ui:
|
||||
|
Reference in New Issue
Block a user