From f85a7cbe59407b05f9d5642ee1fb3c3ec583c0b5 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Wed, 3 May 2023 23:40:18 -0400 Subject: [PATCH] Add alternates for quest field names without underscores --- .../grasscutter/data/excels/quest/QuestData.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/emu/grasscutter/data/excels/quest/QuestData.java b/src/main/java/emu/grasscutter/data/excels/quest/QuestData.java index 3f2bf53ef..464df5090 100644 --- a/src/main/java/emu/grasscutter/data/excels/quest/QuestData.java +++ b/src/main/java/emu/grasscutter/data/excels/quest/QuestData.java @@ -110,13 +110,13 @@ public class QuestData extends GameResource { @Data @FieldDefaults(level = AccessLevel.PRIVATE) public static class QuestExecParam { - @SerializedName("_type") + @SerializedName(value = "_type", alternate = {"type"}) QuestExec type; - @SerializedName("_param") + @SerializedName(value = "_param", alternate = {"param"}) String[] param; - @SerializedName("_count") + @SerializedName(value = "_count", alternate = {"count"}) String count; } @@ -126,16 +126,16 @@ public class QuestData extends GameResource { @Data public static class QuestCondition & QuestTrigger> { - @SerializedName("_type") + @SerializedName(value = "_type", alternate = {"type"}) private TYPE type; - @SerializedName("_param") + @SerializedName(value = "_param", alternate = {"param"}) private int[] param; - @SerializedName("_param_str") + @SerializedName(value = "_param_str", alternate = {"param_str"}) private String paramStr; - @SerializedName("_count") + @SerializedName(value = "_count", alternate = {"count"}) private int count; public String asKey() {