From 4805bb28362620d807e17b72d1472e2c194181f6 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sun, 4 Jun 2023 18:18:33 +0200 Subject: [PATCH] Made NPC Trade CatchMethod & Location localizable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also fixed catchlocation with Pokémon add commands --- P3D/World/ActionScript/Script.vb | 14 ++++++++++++-- .../ActionScript/V2/ScriptCommands/DoPokemon.vb | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/P3D/World/ActionScript/Script.vb b/P3D/World/ActionScript/Script.vb index b98860812..887406716 100644 --- a/P3D/World/ActionScript/Script.vb +++ b/P3D/World/ActionScript/Script.vb @@ -273,8 +273,18 @@ oppPokemon.Item = Item.GetItemByID(itemID) End If - oppPokemon.CatchLocation = Script.SaveNPCTrade(10) - oppPokemon.CatchMethod = Script.SaveNPCTrade(11) + Dim catchLocationLocalization As String = Script.SaveNPCTrade(10) + If Script.SaveNPCTrade(10).StartsWith("") Then + catchLocationLocalization = Localization.GetString(catchLocationLocalization.Remove(0, "") Then + catchMethodLocalization = Localization.GetString(catchMethodLocalization.Remove(0, " 3 Then Dim catchLocationLocalization As String = argument.GetSplit(4) If argument.GetSplit(4).StartsWith("") Then - catchLocationLocalization = Localization.GetString(catchLocationLocalization.Remove(0, " 3 Then Dim catchLocationLocalization As String = argument.GetSplit(4) If argument.GetSplit(4).StartsWith("") Then - catchLocationLocalization = Localization.GetString(catchLocationLocalization.Remove(0, "