Grab correct localized map name for catchlocation

This commit is contained in:
JappaWakka 2025-03-28 14:07:27 +01:00
parent 8ec0e71675
commit e6c32dc8a1

View File

@ -420,6 +420,8 @@ Public Class Pokemon
Get Get
If _catchLocation.StartsWith("<system.token(") AndAlso _catchLocation.EndsWith(")>") Then If _catchLocation.StartsWith("<system.token(") AndAlso _catchLocation.EndsWith(")>") Then
Return Localization.GetString(_catchLocation.Remove(_catchLocation.Length - 2, 2).Remove(0, "<system.token(".Length)) Return Localization.GetString(_catchLocation.Remove(_catchLocation.Length - 2, 2).Remove(0, "<system.token(".Length))
ElseIf Localization.TokenExists(Localization.GetString("Places_" & _catchLocation, _catchLocation)) Then
Return Localization.GetString("Places_" & _catchLocation, _catchLocation)
Else Else
Return Me._catchLocation Return Me._catchLocation
End If End If