make pilot's federation combat bonds system contribution
This commit is contained in:
parent
194add4436
commit
b96e40299d
@ -13,6 +13,16 @@ public class Vouchers : Transaction {
|
||||
Entries.Add(e);
|
||||
}
|
||||
|
||||
public override bool SystemContribution {
|
||||
get {
|
||||
if (Faction == Factions.PilotsFederation && Type == "Combat Bond") {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public long TotalSum {
|
||||
get {
|
||||
if (Faction == null) {
|
||||
@ -39,9 +49,9 @@ public class Vouchers : Transaction {
|
||||
.First();
|
||||
if (v == null) {
|
||||
return null;
|
||||
} else if (v == "CombatBond") {
|
||||
} else if (v == Bonds.CombatBond) {
|
||||
type = "Combat Bond";
|
||||
} else if (v == "bounty") {
|
||||
} else if (v == Bonds.Bounty) {
|
||||
type = "Bounty";
|
||||
} else {
|
||||
type = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(v);
|
||||
|
13
EDPlayerJournal/Bonds.cs
Normal file
13
EDPlayerJournal/Bonds.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace EDPlayerJournal;
|
||||
|
||||
public class Bonds {
|
||||
/// <summary>
|
||||
/// Internal string name for combat bonds.
|
||||
/// </summary>
|
||||
public static readonly string CombatBond = "CombatBond";
|
||||
|
||||
/// <summary>
|
||||
/// Internal string name for bounties.
|
||||
/// </summary>
|
||||
public static readonly string Bounty = "bounty";
|
||||
}
|
Loading…
Reference in New Issue
Block a user