From b9d2b0100ae72a133481e08bcc5782ced667e32d Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Thu, 10 Jul 2025 17:10:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E8=A3=85=E5=A4=87?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E8=BF=81=E7=A7=BB=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ViewModels/Migrator/ItemsJSMigrator.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ViewModels/Migrator/ItemsJSMigrator.cs b/ViewModels/Migrator/ItemsJSMigrator.cs index c99c9c1..87edfa8 100644 --- a/ViewModels/Migrator/ItemsJSMigrator.cs +++ b/ViewModels/Migrator/ItemsJSMigrator.cs @@ -116,7 +116,11 @@ namespace H5MotaUpdate.ViewModels equipValue.Remove(keyToMove); } } - equipValue["value"] = valueObj; + if (equipValue.ContainsKey("percentage") && equipValue["percentage"].Type == JTokenType.Boolean && (bool)equipValue["percentage"]) + { + equipValue["percentage"] = valueObj; + } + else equipValue["value"] = valueObj; perData["equip"] = equipValue; } }