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:
Aaron Wagener
2024-10-01 16:55:34 -05:00
committed by GitHub
parent 5a853dfccd
commit f06f95d03d
4 changed files with 6 additions and 5 deletions

View File

@@ -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: