diff --git a/MissionCompletedEntry.cs b/MissionCompletedEntry.cs index 90ffd81..07537e4 100644 --- a/MissionCompletedEntry.cs +++ b/MissionCompletedEntry.cs @@ -11,6 +11,7 @@ namespace EDJournal { private string commodity = null; private int count = 0; private int donated = 0; + private int id = 0; /* TODO: make this a file at some point for easier editing. */ @@ -54,6 +55,7 @@ namespace EDJournal { protected override void Initialise() { MakeHumanReadableName(); + id = JSON.Value("MissionID") ?? 0; name = JSON.Value("Name"); if (JSON.ContainsKey("Commodity_Localised")) { commodity = JSON.Value("Commodity_Localised"); @@ -69,6 +71,7 @@ namespace EDJournal { public string Name => name; public string Commodity => commodity; public int Count => count; + public int MissionID => id; private void MakeHumanReadableName() { if (readable_name != null && readable_name.Length > 0) {