fix save compat

This commit is contained in:
Eclipse/Druss99 2025-10-05 18:08:31 -04:00 committed by Raffson
parent 855d269420
commit 96d0b2b7d9
2 changed files with 5 additions and 5 deletions

View File

@ -99,6 +99,10 @@ class Coalition:
# Avoid persisting any volatile types that can be deterministically
# recomputed on load for the sake of save compatibility.
del state["faker"]
# TODO: Figure out why this is needed after adding neutral point support
if state["player"] != Player.NEUTRAL:
del state["_threat_zone"]
del state["_navmesh"]
return state
def __setstate__(self, state: dict[str, Any]) -> None:

View File

@ -33,11 +33,7 @@ pluggy==1.5.0
pre-commit==4.2.0
pydantic==2.11.0b2
pydantic-settings==2.8.1
<<<<<<< HEAD
pydcs @ git+https://github.com/dcs-retribution/pydcs@60cddd944d454f59f5c866a2ec2ae3e91526da25
=======
pydcs @ git+https://github.com/Druss99/pydcs@efbd67fc87de6efe40316523cdd96d1c91711f43
>>>>>>> 9f9f53b26 (refactor of previous commits)
pydcs @ git+https://github.com/dcs-retribution/pydcs@90804367e610e7eae4eab034b48eadd9f64ff74f
pyinstaller==5.13.2
pyinstaller-hooks-contrib==2024.0
pyparsing==3.2.1