mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-30 17:25:22 +02:00
Fix localization tokens for catchlocation/method
This commit is contained in:
parent
c3fb81a4c4
commit
d9fe5cdb09
@ -418,7 +418,11 @@ Public Class Pokemon
|
|||||||
|
|
||||||
Public Property CatchLocation() As String
|
Public Property CatchLocation() As String
|
||||||
Get
|
Get
|
||||||
|
If _catchLocation.StartsWith("<system.token(") AndAlso _catchLocation.EndsWith(")>") Then
|
||||||
|
Return Localization.GetString(_catchLocation.Remove(_catchLocation.Length - 2, 2).Remove(0, "<system.token(".Length))
|
||||||
|
Else
|
||||||
Return Me._catchLocation
|
Return Me._catchLocation
|
||||||
|
End If
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
Me._catchLocation = value
|
Me._catchLocation = value
|
||||||
@ -427,7 +431,11 @@ Public Class Pokemon
|
|||||||
|
|
||||||
Public Property CatchTrainerName() As String
|
Public Property CatchTrainerName() As String
|
||||||
Get
|
Get
|
||||||
|
If _catchTrainerName.StartsWith("<system.token(") AndAlso _catchTrainerName.EndsWith(")>") Then
|
||||||
|
Return Localization.GetString(_catchTrainerName.Remove(_catchTrainerName.Length - 2, 2).Remove(0, "<system.token(".Length))
|
||||||
|
Else
|
||||||
Return Me._catchTrainerName
|
Return Me._catchTrainerName
|
||||||
|
End If
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
Me._catchTrainerName = value
|
Me._catchTrainerName = value
|
||||||
@ -436,7 +444,11 @@ Public Class Pokemon
|
|||||||
|
|
||||||
Public Property CatchMethod() As String
|
Public Property CatchMethod() As String
|
||||||
Get
|
Get
|
||||||
|
If _catchMethod.StartsWith("<system.token(") AndAlso _catchMethod.EndsWith(")>") Then
|
||||||
|
Return Localization.GetString(_catchMethod.Remove(_catchMethod.Length - 2, 2).Remove(0, "<system.token(".Length))
|
||||||
|
Else
|
||||||
Return Me._catchMethod
|
Return Me._catchMethod
|
||||||
|
End If
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
Me._catchMethod = value
|
Me._catchMethod = value
|
||||||
|
@ -273,18 +273,8 @@
|
|||||||
oppPokemon.Item = Item.GetItemByID(itemID)
|
oppPokemon.Item = Item.GetItemByID(itemID)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim catchLocationLocalization As String = Script.SaveNPCTrade(10)
|
oppPokemon.CatchLocation = Script.SaveNPCTrade(10)
|
||||||
If Script.SaveNPCTrade(10).StartsWith("<system.token(") AndAlso Script.SaveNPCTrade(10).EndsWith(")>") Then
|
oppPokemon.CatchMethod = Script.SaveNPCTrade(11)
|
||||||
catchLocationLocalization = Localization.GetString(catchLocationLocalization.Remove(0, "<system.token(".Length).Remove(Script.SaveNPCTrade(10).Length - 2, 2))
|
|
||||||
End If
|
|
||||||
|
|
||||||
Dim catchMethodLocalization As String = Script.SaveNPCTrade(11)
|
|
||||||
If Script.SaveNPCTrade(11).StartsWith("<system.token(") AndAlso Script.SaveNPCTrade(11).EndsWith(")>") Then
|
|
||||||
catchMethodLocalization = Localization.GetString(catchMethodLocalization.Remove(0, "<system.token(".Length).Remove(Script.SaveNPCTrade(11).Length - 2, 2))
|
|
||||||
End If
|
|
||||||
|
|
||||||
oppPokemon.CatchLocation = catchLocationLocalization
|
|
||||||
oppPokemon.CatchMethod = catchMethodLocalization
|
|
||||||
oppPokemon.NickName = Script.SaveNPCTrade(12)
|
oppPokemon.NickName = Script.SaveNPCTrade(12)
|
||||||
|
|
||||||
Dim message1 As String = Script.SaveNPCTrade(13)
|
Dim message1 As String = Script.SaveNPCTrade(13)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user