Mach V fixes
This commit is contained in:
parent
01bd460e3c
commit
67d357c459
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -85,6 +85,11 @@
|
||||||
heldItem = CInt(argument.GetSplit(7))
|
heldItem = CInt(argument.GetSplit(7))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim isShiny As Boolean = False
|
||||||
|
If commas > 7 Then
|
||||||
|
isShiny = CBool(argument.GetSplit(8))
|
||||||
|
End If
|
||||||
|
|
||||||
Dim Pokemon As Pokemon = Pokemon.GetPokemonByID(PokemonID)
|
Dim Pokemon As Pokemon = Pokemon.GetPokemonByID(PokemonID)
|
||||||
Pokemon.Generate(Level, True)
|
Pokemon.Generate(Level, True)
|
||||||
|
|
||||||
|
@ -106,6 +111,8 @@
|
||||||
Pokemon.Item = Item.GetItemByID(heldItem)
|
Pokemon.Item = Item.GetItemByID(heldItem)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Pokemon.IsShiny = isShiny
|
||||||
|
|
||||||
Core.Player.Pokemons.Add(Pokemon)
|
Core.Player.Pokemons.Add(Pokemon)
|
||||||
|
|
||||||
Dim pokedexType As Integer = 2
|
Dim pokedexType As Integer = 2
|
||||||
|
@ -714,7 +721,7 @@
|
||||||
End If
|
End If
|
||||||
Case "addtostorage"
|
Case "addtostorage"
|
||||||
' @Pokemon.AddToStorage([BoxIndex], PokemonData)
|
' @Pokemon.AddToStorage([BoxIndex], PokemonData)
|
||||||
' @Pokemon.AddToStorage(PokemonID, Level, [Method], [BallID], [Location], [isEgg], [trainerName])
|
' @Pokemon.AddToStorage(PokemonID, Level, [Method], [BallID], [Location], [isEgg], [trainerName], [heldItem], [isShiny])
|
||||||
|
|
||||||
If argument.StartsWith("{") = True Or argument.Remove(0, argument.IndexOf(",")).StartsWith(",{") = True Then
|
If argument.StartsWith("{") = True Or argument.Remove(0, argument.IndexOf(",")).StartsWith(",{") = True Then
|
||||||
Dim insertIndex As Integer = -1
|
Dim insertIndex As Integer = -1
|
||||||
|
@ -771,6 +778,16 @@
|
||||||
catchTrainer = argument.GetSplit(6)
|
catchTrainer = argument.GetSplit(6)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim heldItem As Integer = 0
|
||||||
|
If commas > 6 Then
|
||||||
|
heldItem = CInt(argument.GetSplit(7))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim isShiny As Boolean = False
|
||||||
|
If commas > 7 Then
|
||||||
|
isShiny = CBool(argument.GetSplit(8))
|
||||||
|
End If
|
||||||
|
|
||||||
Dim Pokemon As Pokemon = Pokemon.GetPokemonByID(PokemonID)
|
Dim Pokemon As Pokemon = Pokemon.GetPokemonByID(PokemonID)
|
||||||
Pokemon.Generate(Level, True)
|
Pokemon.Generate(Level, True)
|
||||||
|
|
||||||
|
@ -788,6 +805,12 @@
|
||||||
Pokemon.EggSteps = 0
|
Pokemon.EggSteps = 0
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If heldItem <> 0 Then
|
||||||
|
Pokemon.Item = Item.GetItemByID(heldItem)
|
||||||
|
End If
|
||||||
|
|
||||||
|
Pokemon.IsShiny = isShiny
|
||||||
|
|
||||||
StorageSystemScreen.DepositPokemon(Pokemon)
|
StorageSystemScreen.DepositPokemon(Pokemon)
|
||||||
|
|
||||||
Dim pokedexType As Integer = 2
|
Dim pokedexType As Integer = 2
|
||||||
|
|
Loading…
Reference in New Issue