From f97b9ce309c617963b49dd55f577e66f92e945ab Mon Sep 17 00:00:00 2001 From: TheRealKamisama <35005476+TheRealKamisama@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E6=81=B6,=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=BE=BE=E6=88=90=E5=AE=8C=E5=85=A8=E7=9A=84=E4=BD=9C=E6=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WFBot/Features/Utils/WFObjects.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WFBot/Features/Utils/WFObjects.cs b/WFBot/Features/Utils/WFObjects.cs index b90d2ea..aca7359 100644 --- a/WFBot/Features/Utils/WFObjects.cs +++ b/WFBot/Features/Utils/WFObjects.cs @@ -1782,8 +1782,14 @@ public class WFInvasion } public class Attacker { + private RewardInfo reward; + [JsonProperty("reward", NullValueHandling = NullValueHandling.Include)] - public RewardInfo Reward { get; set; } + public RewardInfo Reward + { + get => reward ?? new RewardInfo(); + set => reward = value; + } [JsonProperty("faction")] public string Faction { get; set; }