MegaForms references, fix Run bug
@ -411,14 +411,22 @@
|
||||
p = BattleScreen.OppPokemon
|
||||
End If
|
||||
'Transform a Pokemon into it's Mega Evolution
|
||||
Dim _base As String = p.GetDisplayName()
|
||||
If p.AdditionalData = "" Then
|
||||
p.AdditionalData = "mega"
|
||||
Select Case p.Item.ID
|
||||
Case 516, 529
|
||||
p.AdditionalData = "mega_x"
|
||||
Case 517, 530
|
||||
p.AdditionalData = "mega_y"
|
||||
Case Else
|
||||
p.AdditionalData = "mega"
|
||||
End Select
|
||||
p.ReloadDefinitions()
|
||||
p.CalculateStatsBarSpeed()
|
||||
p.CalculateStats()
|
||||
p.LoadMegaAbility()
|
||||
Me.ChangeCameraAngel(1, own, BattleScreen)
|
||||
BattleScreen.BattleQuery.Add(New ToggleEntityQueryObject(own, ToggleEntityQueryObject.BattleEntities.OwnPokemon, PokemonForms.GetOverworldSpriteName(p), 0, 1, -1, -1))
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & " has Mega Evolved!"))
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(_base & " has Mega Evolved!"))
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@ -474,10 +482,8 @@
|
||||
If SelectedMoveOwn = True Then ownMove.MoveSelected(True, BattleScreen)
|
||||
If SelectedMoveOpp = True Then oppMove.MoveSelected(False, BattleScreen)
|
||||
|
||||
MegaEvolCheck(BattleScreen)
|
||||
Dim first As Boolean = BattleCalculation.AttackFirst(ownMove, oppMove, BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
MegaEvolCheck(BattleScreen)
|
||||
|
||||
If first = True Then
|
||||
DoAttackRound(BattleScreen, first, ownMove)
|
||||
@ -495,8 +501,6 @@
|
||||
'Move,Text
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Move And OppStep.StepType = RoundConst.StepTypes.Text Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
ChangeCameraAngel(0, True, BattleScreen)
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(CStr(OppStep.Argument)))
|
||||
@ -514,8 +518,6 @@
|
||||
'Move,Item
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Move And OppStep.StepType = RoundConst.StepTypes.Item Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
OpponentUseItem(BattleScreen, CInt(CStr(OppStep.Argument).Split(CChar(","))(0)), CInt(CStr(OppStep.Argument).Split(CChar(","))(1)))
|
||||
EndRound(BattleScreen, 2)
|
||||
@ -530,8 +532,6 @@
|
||||
'Move,Switch
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Move And OppStep.StepType = RoundConst.StepTypes.Switch Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
If CType(OwnStep.Argument, Attack).ID = 228 Then 'Pursuit is used by own pokemon and opponent tries to switch.
|
||||
BattleScreen.FieldEffects.OwnPursuit = True
|
||||
@ -558,8 +558,6 @@
|
||||
'Move,Flee
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Move And OppStep.StepType = RoundConst.StepTypes.Flee Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
BattleScreen.FieldEffects.OwnUsedMoves.Add(CType(OwnStep.Argument, Attack).ID)
|
||||
Dim ownMove As Attack = CType(OwnStep.Argument, Attack)
|
||||
@ -589,8 +587,6 @@
|
||||
'Text,Move
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Text And OppStep.StepType = RoundConst.StepTypes.Move Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
ChangeCameraAngel(0, True, BattleScreen)
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(CStr(OwnStep.Argument)))
|
||||
@ -659,8 +655,6 @@
|
||||
'Switch,Move
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Switch And OppStep.StepType = RoundConst.StepTypes.Move Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
If BattleCalculation.CanSwitch(BattleScreen, True) = True Then
|
||||
If CType(OppStep.Argument, Attack).ID = 228 Then 'Opp uses pursuit while own tries to switch.
|
||||
@ -787,8 +781,6 @@
|
||||
'Item,Move
|
||||
If OwnStep.StepType = RoundConst.StepTypes.Item And OppStep.StepType = RoundConst.StepTypes.Move Then
|
||||
MegaEvolCheck(BattleScreen)
|
||||
BattleScreen.OppPokemon.CalculateStats()
|
||||
BattleScreen.OwnPokemon.CalculateStats()
|
||||
|
||||
EndRound(BattleScreen, 1)
|
||||
|
||||
@ -3834,7 +3826,6 @@ endthisround:
|
||||
With BattleScreen
|
||||
Select Case type
|
||||
Case 0 'Complete round
|
||||
.BattleMenu._mainMenuItemList.Clear()
|
||||
'The fastest pokemon ends its round first
|
||||
If BattleCalculation.MovesFirst(BattleScreen) = True Then
|
||||
EndRoundOwn(BattleScreen)
|
||||
@ -3957,6 +3948,7 @@ endthisround:
|
||||
BattleScreen.BattleQuery.AddRange({cq1, cq2})
|
||||
|
||||
StartRound(BattleScreen)
|
||||
BattleScreen.ClearMenuTime = True
|
||||
Case 1 'Own round
|
||||
EndTurnOwn(BattleScreen)
|
||||
Case 2 'Opp round
|
||||
|
@ -564,6 +564,11 @@
|
||||
End If
|
||||
|
||||
UpdateMenuOptions(_mainMenuIndex, _mainMenuNextIndex, _mainMenuItemList.Count)
|
||||
If BattleScreen.ClearMenuTime = True Then
|
||||
_mainMenuItemList.Clear()
|
||||
BattleScreen.ClearMenuTime = False
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub CreateMainMenuItems(ByVal BattleScreen As BattleScreen)
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#Region "BattleValues"
|
||||
|
||||
Public ClearMenuTime As Boolean = False
|
||||
Public Shared CanCatch As Boolean = True
|
||||
Public Shared CanRun As Boolean = True
|
||||
Public Shared CanBlackout As Boolean = True
|
||||
|
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/15_mega.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/18_mega.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/212_mega.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/214_mega.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/248_mega.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/254_mega.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/257_mega.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/260_mega.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/282_mega.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/306_mega.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/308_mega.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/323_mega.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/334_mega.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/354_mega.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/359_mega.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/376_mega.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/382_primal.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/383_primal.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/428_mega.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/445_mega.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/448_mega.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/460_mega.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/475_mega.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/531_mega.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/65_mega.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/6_mega_x.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/6_mega_y.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/719_mega.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/80_mega.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Normal/94_mega.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Shiny/181_mega.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Abomasnow_mega.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Absol_mega.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Aerodactyl_mega.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Aggron_mega.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Alakazam_mega.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Ampharos_mega.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Banette_mega.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Blastoise_mega.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Blaziken_mega.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Charizard_mega_x.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Charizard_mega_y.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Cryogonal.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Garchomp_mega.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Gardevoir_mega.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Gengar_mega.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Gyarados_mega.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Heracross_mega.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Houndoom_mega.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Kangaskhan_mega.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Latias_mega.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Latios_mega.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Lucario_mega.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Manectric_mega.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Mawile_mega.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Medicham_mega.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Mewtwo_mega_x.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Mewtwo_mega_y.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Pinsir_mega.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Scizor_mega.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Tyranitar_mega.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/Venusaur_mega.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/aromatisse.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/avalugg.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/barbaracle.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/bergmite.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/binacle.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/braixen.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/bunnelby.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/chesnaught.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/chespin.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/dedenne.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/delphox.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/diancie.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/diggersby.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/espurr.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/fennekin.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/flabebe.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/floette.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/florges.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/froakie.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/frogadier.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/furfrou.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/gogoat.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/gourgeist-large.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/gourgeist-small.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/gourgeist-super.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/gourgeist.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/greninja.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/hawlucha.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/heliolisk.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/helioptile.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/hoopa.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/inkay.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Sprites/malamar.png
Normal file
After Width: | Height: | Size: 9.2 KiB |