Mach V fixes

This commit is contained in:
darkfire006 2020-07-23 21:02:59 -05:00
parent 01bd460e3c
commit 67d357c459
11 changed files with 24 additions and 1 deletions

Binary file not shown.

View File

@ -85,6 +85,11 @@
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)
Pokemon.Generate(Level, True)
@ -106,6 +111,8 @@
Pokemon.Item = Item.GetItemByID(heldItem)
End If
Pokemon.IsShiny = isShiny
Core.Player.Pokemons.Add(Pokemon)
Dim pokedexType As Integer = 2
@ -714,7 +721,7 @@
End If
Case "addtostorage"
' @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
Dim insertIndex As Integer = -1
@ -771,6 +778,16 @@
catchTrainer = argument.GetSplit(6)
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)
Pokemon.Generate(Level, True)
@ -788,6 +805,12 @@
Pokemon.EggSteps = 0
End If
If heldItem <> 0 Then
Pokemon.Item = Item.GetItemByID(heldItem)
End If
Pokemon.IsShiny = isShiny
StorageSystemScreen.DepositPokemon(Pokemon)
Dim pokedexType As Integer = 2