From 4c48706d6bc97df8acadfed363ae7ac782943641 Mon Sep 17 00:00:00 2001 From: Hakoyu Date: Sun, 21 Apr 2024 00:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet.ModMaker/Models/ModModel/PetModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/VPet.ModMaker/Models/ModModel/PetModel.cs b/VPet.ModMaker/Models/ModModel/PetModel.cs index ab135fa..219f16a 100644 --- a/VPet.ModMaker/Models/ModModel/PetModel.cs +++ b/VPet.ModMaker/Models/ModModel/PetModel.cs @@ -112,10 +112,15 @@ public class PetModel : ObservableObjectX RaisePoint.Ill = new(loader.Config.RaisePoint[3].X, loader.Config.RaisePoint[3].Y); // 如果这个宠物数据来自本体, 则不载入 Work 和 Move if (FromMain = fromMain) + { + Name = ID.Translate(); + PetName = PetNameID.Translate(); + Description = DescriptionID.Translate(); return; + } foreach (var work in loader.Config.Works) - Works.Add(new(work) { I18nResource = ModInfoModel.Current.I18nResource }); + Works.Add(new(work) { I18nResource = I18nResource! }); foreach (var move in loader.Config.Moves) Moves.Add(new(move)); }