From e23536e7ba7ce5f8e5a53cd97ae7af6038824a46 Mon Sep 17 00:00:00 2001 From: hamusuke Date: Sun, 9 Oct 2022 09:40:42 +0900 Subject: [PATCH] fix costumes are unable to be unlocked. (#1842) * fix: costumes are able to be unlocked. * Update AvatarCostumeData --- .../java/emu/grasscutter/data/excels/AvatarCostumeData.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/data/excels/AvatarCostumeData.java b/src/main/java/emu/grasscutter/data/excels/AvatarCostumeData.java index 81ff1a148..a05e0dbf6 100644 --- a/src/main/java/emu/grasscutter/data/excels/AvatarCostumeData.java +++ b/src/main/java/emu/grasscutter/data/excels/AvatarCostumeData.java @@ -1,19 +1,21 @@ package emu.grasscutter.data.excels; +import com.google.gson.annotations.SerializedName; import emu.grasscutter.data.GameData; import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "AvatarCostumeExcelConfigData.json") public class AvatarCostumeData extends GameResource { - private int costumeId; + @SerializedName(value = "skinId", alternate = "costumeId") + private int skinId; private int itemId; private int characterId; private int quality; @Override public int getId() { - return this.costumeId; + return this.skinId; } public int getItemId() {