feat: add "factionID" to the TypeID datafile (#22)

This is a breaking change, and not backwards compatible.
This commit is contained in:
Patric Stout
2023-11-26 21:46:32 +01:00
committed by GitHub
parent 993671259d
commit f754a7f9f1
2 changed files with 8 additions and 5 deletions

View File

@@ -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:

View File

@@ -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<int32, TypeID> entries = 1;