From 370cd098660bd59894d90d543d08564f0d9d8384 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sun, 23 Jan 2022 16:46:21 +0100 Subject: [PATCH] commit crime also sometimes has a Fine entry --- CommitCrimeEntry.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CommitCrimeEntry.cs b/CommitCrimeEntry.cs index 76d41e4..ded46ea 100644 --- a/CommitCrimeEntry.cs +++ b/CommitCrimeEntry.cs @@ -4,12 +4,14 @@ public string Faction { get; set; } public string Victim { get; set; } public long Bounty { get; set; } + public long Fine { get; set; } protected override void Initialise() { CrimeType = JSON.Value("CrimeType") ?? "assault"; Faction = JSON.Value("Faction") ?? ""; Victim = JSON.Value("Victim") ?? ""; - Bounty = JSON.Value("Bounty") ?? 0; + Bounty = JSON.Value("Bounty") ?? 0; + Fine = JSON.Value("Fine") ?? 0; } public bool IsMurder {