add target faction to mission accepted

This commit is contained in:
Florian Stinglmayr 2021-08-28 00:10:24 +02:00
parent f94b4084c9
commit 17bf02bef8

View File

@ -2,6 +2,7 @@
namespace EDJournal { namespace EDJournal {
public class MissionAcceptedEntry : Entry { public class MissionAcceptedEntry : Entry {
private string faction = null; private string faction = null;
private string targetfaction = null;
private string name = null; private string name = null;
private string localisedname = null; private string localisedname = null;
private string localisedtargettype = null; private string localisedtargettype = null;
@ -10,6 +11,7 @@ namespace EDJournal {
private int reward = 0; private int reward = 0;
public string Faction => faction; public string Faction => faction;
public string TargetFaction => targetfaction;
public string Name => name; public string Name => name;
public string LocalisedName => localisedname; public string LocalisedName => localisedname;
public string LocalisedTargetType => localisedtargettype; public string LocalisedTargetType => localisedtargettype;
@ -19,6 +21,7 @@ namespace EDJournal {
protected override void Initialise() { protected override void Initialise() {
faction = JSON.Value<string>("Faction") ?? ""; faction = JSON.Value<string>("Faction") ?? "";
targetfaction = JSON.Value<string>("TargetFaction") ?? "";
name = JSON.Value<string>("Name") ?? ""; name = JSON.Value<string>("Name") ?? "";
localisedname = JSON.Value<string>("LocalisedName") ?? ""; localisedname = JSON.Value<string>("LocalisedName") ?? "";
localisedtargettype = JSON.Value<string>("TargetType_Localised") ?? ""; localisedtargettype = JSON.Value<string>("TargetType_Localised") ?? "";