The Witness: Make location order in the spoiler log deterministic (#3895)

* Fix location order

* Update worlds/witness/data/static_logic.py

Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>

---------

Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
NewSoupVi
2024-12-30 00:50:39 +01:00
committed by GitHub
parent 0de1369ec5
commit 8dbecf3d57
2 changed files with 23 additions and 8 deletions

View File

@@ -106,6 +106,7 @@ class StaticWitnessLogicObj:
"entityType": location_id,
"locationType": None,
"area": current_area,
"order": len(self.ENTITIES_BY_HEX),
}
self.ENTITIES_BY_NAME[self.ENTITIES_BY_HEX[entity_hex]["checkName"]] = self.ENTITIES_BY_HEX[entity_hex]
@@ -186,6 +187,7 @@ class StaticWitnessLogicObj:
"entityType": entity_type,
"locationType": location_type,
"area": current_area,
"order": len(self.ENTITIES_BY_HEX),
}
self.ENTITY_ID_TO_NAME[entity_hex] = full_entity_name