From f61360dcb04395a27c299e71cfc200082669119f Mon Sep 17 00:00:00 2001 From: Joe Vessella Date: Wed, 6 Mar 2024 10:16:03 -0500 Subject: [PATCH] Set teamCodexCount to 0 in non-PC4 games. --- gamebrain/gamedata/cache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamebrain/gamedata/cache.py b/gamebrain/gamedata/cache.py index b11605e..a87c977 100644 --- a/gamebrain/gamedata/cache.py +++ b/gamebrain/gamedata/cache.py @@ -1827,6 +1827,10 @@ async def get_team_data(cls, team_id: TeamID | None) -> GameDataResponse | None: else: cls._spam_reduction_tracker += 1 + # This value is not used in PC5. + if not team_data.ship.gamespaceData.isPC4Workspace: + team_data.session.teamCodexCount = 0 + return full_team_data @classmethod