From 735f4f0f0108abb39ae499f2fb267b5ebdc3271d Mon Sep 17 00:00:00 2001 From: TuanAnh2901 Date: Sun, 28 Dec 2025 07:55:59 +0700 Subject: [PATCH] cost fix --- MelonLoader/Patches/GameObjects/AlmanacPlantWindow_Patch.cs | 3 ++- MelonLoader/PvZ Fusion Translator [MelonLoader].csproj | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MelonLoader/Patches/GameObjects/AlmanacPlantWindow_Patch.cs b/MelonLoader/Patches/GameObjects/AlmanacPlantWindow_Patch.cs index 5b07557..ff1cdd6 100644 --- a/MelonLoader/Patches/GameObjects/AlmanacPlantWindow_Patch.cs +++ b/MelonLoader/Patches/GameObjects/AlmanacPlantWindow_Patch.cs @@ -49,7 +49,8 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects text.fontSizeMax = 21; } - __instance.showedPlantIntroduce.text = Utils.RemoveSizeTags(plantInfo.info) + "\n\n" + Utils.RemoveSizeTags(plantInfo.introduce) + "\n\n"; + char[] toTrim = Environment.NewLine.ToCharArray(); + __instance.showedPlantIntroduce.text = Utils.RemoveSizeTags(plantInfo.info) + "\n\n" + Utils.RemoveSizeTags(plantInfo.introduce) + "\n\n" + Utils.RemoveSizeTags(plantInfo.cost).TrimStart(toTrim) + "\n\n"; __instance.showedPlantIntroduce.font = fontAsset; __instance.showedPlantIntroduce.margin = new Vector4(6, 2, 12, 0); diff --git a/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj b/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj index 9d1f60d..22943d4 100644 --- a/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj +++ b/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj @@ -13,8 +13,10 @@ latest enable Debug;DebugEnglish;ReleaseMulti;ReleaseEnglish;DebugTesting;ReleaseOther;DebugObfuscate;ReleaseObfuscate - C:\Users\rainb\Desktop\PC_PVZ-Fusion_3.2.1 + D:\PvZ Fusion\Game Files AnyCPU;ARM64;x64 + +