implement faction kill bonds
This commit is contained in:
parent
178ed1803c
commit
e84d3ed808
1
Entry.cs
1
Entry.cs
@ -16,6 +16,7 @@ namespace EDJournal {
|
|||||||
{ Events.CommitCrime, typeof(CommitCrimeEntry) },
|
{ Events.CommitCrime, typeof(CommitCrimeEntry) },
|
||||||
{ Events.Died, typeof(DiedEntry) },
|
{ Events.Died, typeof(DiedEntry) },
|
||||||
{ Events.Docked, typeof(DockedEntry) },
|
{ Events.Docked, typeof(DockedEntry) },
|
||||||
|
{ Events.FactionKillBond, typeof(FactionKillBondEntry) },
|
||||||
{ Events.FSDJump, typeof(FSDJumpEntry) },
|
{ Events.FSDJump, typeof(FSDJumpEntry) },
|
||||||
{ Events.HullDamage, typeof(HullDamageEntry) },
|
{ Events.HullDamage, typeof(HullDamageEntry) },
|
||||||
{ Events.MarketSell, typeof(MarketSellEntry) },
|
{ Events.MarketSell, typeof(MarketSellEntry) },
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
public static readonly string CommitCrime = "CommitCrime";
|
public static readonly string CommitCrime = "CommitCrime";
|
||||||
public static readonly string Died = "Died";
|
public static readonly string Died = "Died";
|
||||||
public static readonly string Docked = "Docked";
|
public static readonly string Docked = "Docked";
|
||||||
|
public static readonly string FactionKillBond = "FactionKillBond";
|
||||||
public static readonly string FighterDestroyed = "FighterDestroyed";
|
public static readonly string FighterDestroyed = "FighterDestroyed";
|
||||||
public static readonly string FSDJump = "FSDJump";
|
public static readonly string FSDJump = "FSDJump";
|
||||||
public static readonly string HullDamage = "HullDamage";
|
public static readonly string HullDamage = "HullDamage";
|
||||||
|
19
FactionKillBondEntry.cs
Normal file
19
FactionKillBondEntry.cs
Normal 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") ?? "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -19,8 +19,8 @@ namespace EDJournal {
|
|||||||
{ "Mission_AltruismCredits_Bust_name", "Donate Credits (Bust)" },
|
{ "Mission_AltruismCredits_Bust_name", "Donate Credits (Bust)" },
|
||||||
{ "Mission_AltruismCredits_name", "Donate Credits" },
|
{ "Mission_AltruismCredits_name", "Donate Credits" },
|
||||||
{ "Mission_Collect_Bust_name", "Provide (Bust)" },
|
{ "Mission_Collect_Bust_name", "Provide (Bust)" },
|
||||||
{ "Mission_Collect_CivilUnrest_name", "Provide (Civil Unrest)" },
|
|
||||||
{ "Mission_Collect_CivilLiberty_name", "Provide (Civil Liberty)" },
|
{ "Mission_Collect_CivilLiberty_name", "Provide (Civil Liberty)" },
|
||||||
|
{ "Mission_Collect_CivilUnrest_name", "Provide (Civil Unrest)" },
|
||||||
{ "Mission_Collect_Famine_name", "Provide (Famine)" },
|
{ "Mission_Collect_Famine_name", "Provide (Famine)" },
|
||||||
{ "Mission_Collect_name", "Provide" },
|
{ "Mission_Collect_name", "Provide" },
|
||||||
{ "Mission_Courier_Democracy_name", "Courier (Democracy)" },
|
{ "Mission_Courier_Democracy_name", "Courier (Democracy)" },
|
||||||
@ -38,10 +38,11 @@ namespace EDJournal {
|
|||||||
{ "Mission_Delivery_Retreat_name", "Delivery (Retreat)" },
|
{ "Mission_Delivery_Retreat_name", "Delivery (Retreat)" },
|
||||||
{ "Mission_Hack_BLOPS_Boom_name", "Hack Megaship (Black Ops)" },
|
{ "Mission_Hack_BLOPS_Boom_name", "Hack Megaship (Black Ops)" },
|
||||||
{ "Mission_HackMegaship_name", "Hack Megaship" },
|
{ "Mission_HackMegaship_name", "Hack Megaship" },
|
||||||
|
{ "Mission_Massacre_Conflict_CivilWar_name", "Massacre (Civil War)" },
|
||||||
{ "Mission_Massacre_name", "Massacre" },
|
{ "Mission_Massacre_name", "Massacre" },
|
||||||
{ "Mission_Massacre_RankEmp_name", "Massacre (Imperial Navy)" },
|
{ "Mission_Massacre_RankEmp_name", "Massacre (Imperial Navy)" },
|
||||||
{ "Mission_MassacreWing_name", "Massacre (Wing)" },
|
|
||||||
{ "Mission_MassacreWing_Legal_Bust_name", "Massacre (Wing) (Bust)" },
|
{ "Mission_MassacreWing_Legal_Bust_name", "Massacre (Wing) (Bust)" },
|
||||||
|
{ "Mission_MassacreWing_name", "Massacre (Wing)" },
|
||||||
{ "Mission_OnFoot_Collect_MB_name", "On Foot Collection" },
|
{ "Mission_OnFoot_Collect_MB_name", "On Foot Collection" },
|
||||||
{ "Mission_OnFoot_Onslaught_MB_name", "On Foot Onslaught" },
|
{ "Mission_OnFoot_Onslaught_MB_name", "On Foot Onslaught" },
|
||||||
{ "Mission_OnFoot_Onslaught_Offline_MB_name", "On Foot Onslaught (Offline)" },
|
{ "Mission_OnFoot_Onslaught_Offline_MB_name", "On Foot Onslaught (Offline)" },
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
<Compile Include="EliteDangerous.cs" />
|
<Compile Include="EliteDangerous.cs" />
|
||||||
<Compile Include="Entry.cs" />
|
<Compile Include="Entry.cs" />
|
||||||
<Compile Include="Events.cs" />
|
<Compile Include="Events.cs" />
|
||||||
|
<Compile Include="FactionKillBondEntry.cs" />
|
||||||
<Compile Include="FSDJumpEntry.cs" />
|
<Compile Include="FSDJumpEntry.cs" />
|
||||||
<Compile Include="HullDamageEntry.cs" />
|
<Compile Include="HullDamageEntry.cs" />
|
||||||
<Compile Include="JournalException.cs" />
|
<Compile Include="JournalException.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user