mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-16 02:14:52 +02:00
Fix form names
This commit is contained in:
parent
6764062c79
commit
d2d937e336
@ -2280,11 +2280,20 @@ Public Class Pokemon
|
|||||||
Return "Egg"
|
Return "Egg"
|
||||||
Else
|
Else
|
||||||
If Me.NickName = "" Then
|
If Me.NickName = "" Then
|
||||||
|
If PokemonForms.GetFormName(Me) <> "" Then
|
||||||
|
Dim FormName As String = PokemonForms.GetFormName(Me)
|
||||||
|
If Localization.TokenExists("pokemon_name_" & FormName) = True Then
|
||||||
|
Return Localization.GetString("pokemon_name_" & FormName)
|
||||||
|
Else
|
||||||
|
Return FormName
|
||||||
|
End If
|
||||||
|
Else
|
||||||
If Localization.TokenExists("pokemon_name_" & Me.Name) = True Then
|
If Localization.TokenExists("pokemon_name_" & Me.Name) = True Then
|
||||||
Return Localization.GetString("pokemon_name_" & Me.Name)
|
Return Localization.GetString("pokemon_name_" & Me.Name)
|
||||||
Else
|
Else
|
||||||
Return Me.Name
|
Return Me.Name
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
Return Me.NickName
|
Return Me.NickName
|
||||||
End If
|
End If
|
||||||
@ -2295,11 +2304,20 @@ Public Class Pokemon
|
|||||||
''' Returns the properly translated name of a Pokémon if defined in the language files.
|
''' Returns the properly translated name of a Pokémon if defined in the language files.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Function GetName() As String
|
Public Function GetName() As String
|
||||||
|
If PokemonForms.GetFormName(Me) <> "" Then
|
||||||
|
Dim FormName As String = PokemonForms.GetFormName(Me)
|
||||||
|
If Localization.TokenExists("pokemon_name_" & FormName) = True Then
|
||||||
|
Return Localization.GetString("pokemon_name_" & FormName)
|
||||||
|
Else
|
||||||
|
Return FormName
|
||||||
|
End If
|
||||||
|
Else
|
||||||
If Localization.TokenExists("pokemon_name_" & Me.Name) = True Then
|
If Localization.TokenExists("pokemon_name_" & Me.Name) = True Then
|
||||||
Return Localization.GetString("pokemon_name_" & Me.Name)
|
Return Localization.GetString("pokemon_name_" & Me.Name)
|
||||||
Else
|
Else
|
||||||
Return Me.Name
|
Return Me.Name
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user