mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Enabled any pokemon having all HMs in Sandbox mode. Pichu can have Volt Tackle now. Fixed a crash related to Daycare.
This commit is contained in:
parent
66c31c533b
commit
c721a1125b
@ -100,6 +100,11 @@
|
|||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
'Volt Tackle on Pikachu
|
||||||
|
If (parent1.Item IsNot Nothing AndAlso parent1.Item.Name.ToLower = "light ball") OrElse (parent2.Item IsNot Nothing AndAlso parent2.Item.Name.ToLower = "light ball") Then
|
||||||
|
Dim newAttack As BattleSystem.Attack = BattleSystem.Attack.GetAttackByID(344)
|
||||||
|
EggMoves.Add(newAttack)
|
||||||
|
End If
|
||||||
|
|
||||||
Dim learnMoves As New List(Of BattleSystem.Attack)
|
Dim learnMoves As New List(Of BattleSystem.Attack)
|
||||||
If EggMoves.Count <= 4 Then
|
If EggMoves.Count <= 4 Then
|
||||||
|
@ -254,32 +254,32 @@
|
|||||||
Me.MenuID = 0
|
Me.MenuID = 0
|
||||||
ChooseBox.Show({Localization.GetString("pokemon_screen_summary"), Localization.GetString("pokemon_screen_switch"), Localization.GetString("pokemon_screen_item"), Localization.GetString("pokemon_screen_back")}, 0, {})
|
ChooseBox.Show({Localization.GetString("pokemon_screen_summary"), Localization.GetString("pokemon_screen_switch"), Localization.GetString("pokemon_screen_item"), Localization.GetString("pokemon_screen_back")}, 0, {})
|
||||||
|
|
||||||
If (PokemonHasMove(Core.Player.Pokemons(index), "Cut") = True And Badge.CanUseHMMove(Badge.HMMoves.Cut) = True And Core.Player.Pokemons(index).IsEgg() = False) Or GameController.IS_DEBUG_ACTIVE = True Then
|
If (PokemonHasMove(Core.Player.Pokemons(index), "Cut") = True And Badge.CanUseHMMove(Badge.HMMoves.Cut) = True And Core.Player.Pokemons(index).IsEgg() = False) OrElse GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
||||||
options.Insert(1, "Cut")
|
options.Insert(1, "Cut")
|
||||||
ChooseBox.Options = options.ToArray()
|
ChooseBox.Options = options.ToArray()
|
||||||
End If
|
End If
|
||||||
If (PokemonHasMove(Core.Player.Pokemons(index), "Flash") = True And Badge.CanUseHMMove(Badge.HMMoves.Flash) = True And Core.Player.Pokemons(index).IsEgg() = False) Or GameController.IS_DEBUG_ACTIVE = True Then
|
If (PokemonHasMove(Core.Player.Pokemons(index), "Flash") = True And Badge.CanUseHMMove(Badge.HMMoves.Flash) = True And Core.Player.Pokemons(index).IsEgg() = False) OrElse GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
||||||
options.Insert(1, "Flash")
|
options.Insert(1, "Flash")
|
||||||
ChooseBox.Options = options.ToArray()
|
ChooseBox.Options = options.ToArray()
|
||||||
End If
|
End If
|
||||||
If (PokemonHasMove(Core.Player.Pokemons(index), "Ride") = True And Badge.CanUseHMMove(Badge.HMMoves.Ride) = True And Core.Player.Pokemons(index).IsEgg() = False) Or GameController.IS_DEBUG_ACTIVE = True Then
|
If (PokemonHasMove(Core.Player.Pokemons(index), "Ride") = True And Badge.CanUseHMMove(Badge.HMMoves.Ride) = True And Core.Player.Pokemons(index).IsEgg() = False) OrElse GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
||||||
options.Insert(1, "Ride")
|
options.Insert(1, "Ride")
|
||||||
ChooseBox.Options = options.ToArray()
|
ChooseBox.Options = options.ToArray()
|
||||||
End If
|
End If
|
||||||
If (PokemonHasMove(Core.Player.Pokemons(index), "Dig") = True And Core.Player.Pokemons(index).IsEgg() = False) Or GameController.IS_DEBUG_ACTIVE = True Then
|
If (PokemonHasMove(Core.Player.Pokemons(index), "Dig") = True And Core.Player.Pokemons(index).IsEgg() = False) OrElse GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
||||||
options.Insert(1, "Dig")
|
options.Insert(1, "Dig")
|
||||||
ChooseBox.Options = options.ToArray()
|
ChooseBox.Options = options.ToArray()
|
||||||
End If
|
End If
|
||||||
If (PokemonHasMove(Core.Player.Pokemons(index), "Teleport") = True And Core.Player.Pokemons(index).IsEgg() = False) Or GameController.IS_DEBUG_ACTIVE = True Then
|
If (PokemonHasMove(Core.Player.Pokemons(index), "Teleport") = True And Core.Player.Pokemons(index).IsEgg() = False) OrElse GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
||||||
options.Insert(1, "Teleport")
|
options.Insert(1, "Teleport")
|
||||||
ChooseBox.Options = options.ToArray()
|
ChooseBox.Options = options.ToArray()
|
||||||
End If
|
End If
|
||||||
If (PokemonHasMove(Core.Player.Pokemons(index), "Fly") = True And Badge.CanUseHMMove(Badge.HMMoves.Fly) = True And Core.Player.Pokemons(index).IsEgg() = False) Or GameController.IS_DEBUG_ACTIVE = True Then
|
If (PokemonHasMove(Core.Player.Pokemons(index), "Fly") = True And Badge.CanUseHMMove(Badge.HMMoves.Fly) = True And Core.Player.Pokemons(index).IsEgg() = False) OrElse GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
Dim options As List(Of String) = ChooseBox.Options.ToList()
|
||||||
options.Insert(1, "Fly")
|
options.Insert(1, "Fly")
|
||||||
ChooseBox.Options = options.ToArray()
|
ChooseBox.Options = options.ToArray()
|
||||||
@ -450,7 +450,7 @@
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function PokemonHasMove(ByVal p As Pokemon, ByVal moveName As String) As Boolean
|
Private Function PokemonHasMove(ByVal p As Pokemon, ByVal moveName As String) As Boolean
|
||||||
If GameController.IS_DEBUG_ACTIVE = True Then
|
If GameController.IS_DEBUG_ACTIVE = True OrElse Core.Player.SandBoxMode Then
|
||||||
Return True
|
Return True
|
||||||
Else
|
Else
|
||||||
For Each a As BattleSystem.Attack In p.Attacks
|
For Each a As BattleSystem.Attack In p.Attacks
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
Shared _valid As Boolean = False
|
Shared _valid As Boolean = False
|
||||||
|
|
||||||
Const RUNVALIDATION As Boolean = False
|
Const RUNVALIDATION As Boolean = False
|
||||||
Const EXPECTEDSIZE As Integer = 42306954
|
Const EXPECTEDSIZE As Integer = 42306946
|
||||||
Const METAHASH As String = "ODdEQzA1OEVGNjJCMkUwMzk3QjAyNUM5RTQ4NUJCOUE="
|
Const METAHASH As String = "ODM3QjVGQ0FGMjYzMzMwMzU5ODUzNThCRjQ1MzQ3MDE="
|
||||||
|
|
||||||
Public Shared ReadOnly Property IsValid(ByVal ForceResult As Boolean) As Boolean
|
Public Shared ReadOnly Property IsValid(ByVal ForceResult As Boolean) As Boolean
|
||||||
Get
|
Get
|
||||||
|
@ -17,7 +17,7 @@ IsMale|50
|
|||||||
Ability1|9
|
Ability1|9
|
||||||
Ability2|Nothing
|
Ability2|Nothing
|
||||||
HiddenAbility|31
|
HiddenAbility|31
|
||||||
EggMoves|516,117,268,574,3,227,203,252,175,381,217,179,9,321,344,273,6
|
EggMoves|516,117,268,574,3,227,203,252,175,381,217,179,9,321,273,6
|
||||||
Machines|29,174,205,92,192,237,173,63,182,240,203,218,231,87,216,189,104,207,214,129,111,197,156,213,5,25,34,36,68,69,99,85,102,117,86,164,113,351,263,290,374,451,416,445,363,447,496,497,521,528,590,148
|
Machines|29,174,205,92,192,237,173,63,182,240,203,218,231,87,216,189,104,207,214,129,111,197,156,213,5,25,34,36,68,69,99,85,102,117,86,164,113,351,263,290,374,451,416,445,363,447,496,497,521,528,590,148
|
||||||
BaseHP|20
|
BaseHP|20
|
||||||
BaseAttack|40
|
BaseAttack|40
|
||||||
|
@ -34,7 +34,6 @@ CanFly|0
|
|||||||
CanSwim|0
|
CanSwim|0
|
||||||
Pokedex|This intelligent Pokémon roasts hard berries with electricity to make them tender enough to eat.\Mouse Pokémon\6\0.4\0,148,0
|
Pokedex|This intelligent Pokémon roasts hard berries with electricity to make them tender enough to eat.\Mouse Pokémon\6\0.4\0,148,0
|
||||||
Scale|0.7
|
Scale|0.7
|
||||||
Move|1,344
|
|
||||||
Move|1,39
|
Move|1,39
|
||||||
Move|1,84
|
Move|1,84
|
||||||
Move|5,45
|
Move|5,45
|
||||||
@ -52,6 +51,6 @@ Move|42,435
|
|||||||
Move|45,113
|
Move|45,113
|
||||||
Move|50,87
|
Move|50,87
|
||||||
EvolutionCondition|26,item,23,item
|
EvolutionCondition|26,item,23,item
|
||||||
Item|1,163
|
Item|5,163
|
||||||
Item|50,2006
|
Item|50,2006
|
||||||
TradeValue|20
|
TradeValue|20
|
||||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user