mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 00:04:33 +02:00
Battle Tower fixes
This commit is contained in:
parent
3b8e1cd977
commit
98ca5fdcd0
@ -207,7 +207,7 @@ Public Class Trainer
|
|||||||
Dim PokeData As String = PokeLine.GetSplit(1, "|")
|
Dim PokeData As String = PokeLine.GetSplit(1, "|")
|
||||||
If PokeData <> "" Then
|
If PokeData <> "" Then
|
||||||
If ScriptCommander.Parse(PokeData).ToString().StartsWith("{") = True Then
|
If ScriptCommander.Parse(PokeData).ToString().StartsWith("{") = True Then
|
||||||
PokeData = ScriptCommander.Parse(PokeData).ToString().Replace("§", ",")
|
PokeData = ScriptCommander.Parse(PokeData).ToString().Replace("§", ",").Replace("«", "[").Replace("»", "]")
|
||||||
End If
|
End If
|
||||||
If PokeData.StartsWith("{") = True And PokeData.EndsWith("}") = True Then
|
If PokeData.StartsWith("{") = True And PokeData.EndsWith("}") = True Then
|
||||||
Dim p As Pokemon = Pokemon.GetPokemonByData(PokeData)
|
Dim p As Pokemon = Pokemon.GetPokemonByData(PokeData)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1230,7 +1230,7 @@ Public Class Pokemon
|
|||||||
''' <param name="InputData">The data that defines the Pokémon.</param>
|
''' <param name="InputData">The data that defines the Pokémon.</param>
|
||||||
Public Shared Function GetPokemonByData(ByVal InputData As String) As Pokemon
|
Public Shared Function GetPokemonByData(ByVal InputData As String) As Pokemon
|
||||||
Dim Tags As New Dictionary(Of String, String)
|
Dim Tags As New Dictionary(Of String, String)
|
||||||
Dim Data() As String = InputData.Split(CChar("}"))
|
Dim Data() As String = InputData.Replace("§", ",").Replace("«", "[").Replace("»", "]").Split(CChar("}"))
|
||||||
For Each Tag As String In Data
|
For Each Tag As String In Data
|
||||||
If Tag.Contains("{") = True And Tag.Contains("[") = True Then
|
If Tag.Contains("{") = True And Tag.Contains("[") = True Then
|
||||||
Dim TagName As String = Tag.Remove(0, 2)
|
Dim TagName As String = Tag.Remove(0, 2)
|
||||||
@ -1515,7 +1515,7 @@ Public Class Pokemon
|
|||||||
Dim loadedHP As Boolean = False
|
Dim loadedHP As Boolean = False
|
||||||
|
|
||||||
Dim Tags As New Dictionary(Of String, String)
|
Dim Tags As New Dictionary(Of String, String)
|
||||||
Dim Data() As String = InputData.Split(CChar("}"))
|
Dim Data() As String = InputData.Replace("§", ",").Replace("«", "[").Replace("»", "]").Split(CChar("}"))
|
||||||
For Each Tag As String In Data
|
For Each Tag As String In Data
|
||||||
If Tag.Contains("{") = True And Tag.Contains("[") = True Then
|
If Tag.Contains("{") = True And Tag.Contains("[") = True Then
|
||||||
Dim TagName As String = Tag.Remove(0, 2)
|
Dim TagName As String = Tag.Remove(0, 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user