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;