From f754a7f9f1973192238f3be2faa9ffd8a949bfad Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 26 Nov 2023 21:46:32 +0100 Subject: [PATCH] feat: add "factionID" to the TypeID datafile (#22) This is a breaking change, and not backwards compatible. --- convert.py | 2 ++ esf.proto | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/convert.py b/convert.py index cc40411..dc08fbd 100644 --- a/convert.py +++ b/convert.py @@ -62,6 +62,8 @@ def convert_type_ids(path): if groupIDs[entry["groupID"]]["categoryID"] == 6: ships.append(id) + if "factionID" in entry: + pb2.entries[id].factionID = entry["factionID"] if "marketGroupID" in entry: pb2.entries[id].marketGroupID = entry["marketGroupID"] if "capacity" in entry: diff --git a/esf.proto b/esf.proto index edf6f76..650dc42 100644 --- a/esf.proto +++ b/esf.proto @@ -28,11 +28,12 @@ message TypeIDs { required int32 categoryID = 3; required bool published = 4; - optional int32 marketGroupID = 5; - optional float capacity = 6; - optional float mass = 7; - optional float radius = 8; - optional float volume = 9; + optional int32 factionID = 5; + optional int32 marketGroupID = 6; + optional float capacity = 7; + optional float mass = 8; + optional float radius = 9; + optional float volume = 10; } map entries = 1;