implement faction kill bonds

This commit is contained in:
Florian Stinglmayr 2021-09-28 14:14:37 +02:00
parent 178ed1803c
commit e84d3ed808
5 changed files with 25 additions and 2 deletions

View File

@ -16,6 +16,7 @@ namespace EDJournal {
{ Events.CommitCrime, typeof(CommitCrimeEntry) },
{ Events.Died, typeof(DiedEntry) },
{ Events.Docked, typeof(DockedEntry) },
{ Events.FactionKillBond, typeof(FactionKillBondEntry) },
{ Events.FSDJump, typeof(FSDJumpEntry) },
{ Events.HullDamage, typeof(HullDamageEntry) },
{ Events.MarketSell, typeof(MarketSellEntry) },

View File

@ -4,6 +4,7 @@
public static readonly string CommitCrime = "CommitCrime";
public static readonly string Died = "Died";
public static readonly string Docked = "Docked";
public static readonly string FactionKillBond = "FactionKillBond";
public static readonly string FighterDestroyed = "FighterDestroyed";
public static readonly string FSDJump = "FSDJump";
public static readonly string HullDamage = "HullDamage";

19
FactionKillBondEntry.cs Normal file
View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EDJournal {
public class FactionKillBondEntry : Entry {
public int Reward { get; set; }
public string AwardingFaction { get; set; }
public string VictimFaction { get; set; }
protected override void Initialise() {
Reward = JSON.Value<int?>("Reward") ?? 0;
AwardingFaction = JSON.Value<string>("AwardingFaction") ?? "";
VictimFaction = JSON.Value<string>("VictimFaction") ?? "";
}
}
}

View File

@ -19,8 +19,8 @@ namespace EDJournal {
{ "Mission_AltruismCredits_Bust_name", "Donate Credits (Bust)" },
{ "Mission_AltruismCredits_name", "Donate Credits" },
{ "Mission_Collect_Bust_name", "Provide (Bust)" },
{ "Mission_Collect_CivilUnrest_name", "Provide (Civil Unrest)" },
{ "Mission_Collect_CivilLiberty_name", "Provide (Civil Liberty)" },
{ "Mission_Collect_CivilUnrest_name", "Provide (Civil Unrest)" },
{ "Mission_Collect_Famine_name", "Provide (Famine)" },
{ "Mission_Collect_name", "Provide" },
{ "Mission_Courier_Democracy_name", "Courier (Democracy)" },
@ -38,10 +38,11 @@ namespace EDJournal {
{ "Mission_Delivery_Retreat_name", "Delivery (Retreat)" },
{ "Mission_Hack_BLOPS_Boom_name", "Hack Megaship (Black Ops)" },
{ "Mission_HackMegaship_name", "Hack Megaship" },
{ "Mission_Massacre_Conflict_CivilWar_name", "Massacre (Civil War)" },
{ "Mission_Massacre_name", "Massacre" },
{ "Mission_Massacre_RankEmp_name", "Massacre (Imperial Navy)" },
{ "Mission_MassacreWing_name", "Massacre (Wing)" },
{ "Mission_MassacreWing_Legal_Bust_name", "Massacre (Wing) (Bust)" },
{ "Mission_MassacreWing_name", "Massacre (Wing)" },
{ "Mission_OnFoot_Collect_MB_name", "On Foot Collection" },
{ "Mission_OnFoot_Onslaught_MB_name", "On Foot Onslaught" },
{ "Mission_OnFoot_Onslaught_Offline_MB_name", "On Foot Onslaught (Offline)" },

View File

@ -47,6 +47,7 @@
<Compile Include="EliteDangerous.cs" />
<Compile Include="Entry.cs" />
<Compile Include="Events.cs" />
<Compile Include="FactionKillBondEntry.cs" />
<Compile Include="FSDJumpEntry.cs" />
<Compile Include="HullDamageEntry.cs" />
<Compile Include="JournalException.cs" />