mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 16:54:56 +02:00
Made NPCs able to mega evolve their pokemon
This commit is contained in:
parent
a29b90c174
commit
c14077d3e9
@ -369,6 +369,7 @@
|
|||||||
End If
|
End If
|
||||||
'AI move here:
|
'AI move here:
|
||||||
If BattleScreen.IsTrainerBattle AndAlso Not BattleScreen.IsRemoteBattle Then
|
If BattleScreen.IsTrainerBattle AndAlso Not BattleScreen.IsRemoteBattle Then
|
||||||
|
AI_MegaEvolve(BattleScreen)
|
||||||
Return TrainerAI.GetAIMove(BattleScreen, OwnStep)
|
Return TrainerAI.GetAIMove(BattleScreen, OwnStep)
|
||||||
Else
|
Else
|
||||||
Return New RoundConst() With {.StepType = RoundConst.StepTypes.Move, .Argument = BattleScreen.OppPokemon.Attacks(Core.Random.Next(0, BattleScreen.OppPokemon.Attacks.Count))}
|
Return New RoundConst() With {.StepType = RoundConst.StepTypes.Move, .Argument = BattleScreen.OppPokemon.Attacks(Core.Random.Next(0, BattleScreen.OppPokemon.Attacks.Count))}
|
||||||
@ -416,6 +417,25 @@
|
|||||||
Public SelectedMoveOwn As Boolean = True
|
Public SelectedMoveOwn As Boolean = True
|
||||||
Public SelectedMoveOpp As Boolean = True
|
Public SelectedMoveOpp As Boolean = True
|
||||||
|
|
||||||
|
Sub AI_MegaEvolve(ByVal BattleScreen As BattleScreen)
|
||||||
|
For i = 0 To BattleScreen.Trainer.Pokemons.Count - 1
|
||||||
|
Dim _str As String = BattleScreen.Trainer.Pokemons(i).AdditionalData
|
||||||
|
Select Case _str
|
||||||
|
Case "mega", "mega_x", "mega_y"
|
||||||
|
Exit Sub
|
||||||
|
Case Else
|
||||||
|
'do nothing
|
||||||
|
End Select
|
||||||
|
Next
|
||||||
|
Dim p As Pokemon = BattleScreen.OppPokemon
|
||||||
|
If p.Item IsNot Nothing AndAlso p.Item.IsMegaStone = True Then
|
||||||
|
Dim megaStone = CType(p.Item, Items.MegaStone)
|
||||||
|
If p.Number = megaStone.MegaPokemonNumber Then
|
||||||
|
BattleScreen.IsMegaEvolvingOpp = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
'Does the MegaEvolution
|
'Does the MegaEvolution
|
||||||
Sub DoMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal own As Boolean)
|
Sub DoMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal own As Boolean)
|
||||||
|
|
||||||
|
@ -42828,3 +42828,15 @@
|
|||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/NPC/ManaphyEgg.png
|
/build:Textures/NPC/ManaphyEgg.png
|
||||||
|
|
||||||
|
#begin Pokemon/Overworld/Shiny/6_mega_x.png
|
||||||
|
/importer:TextureImporter
|
||||||
|
/processor:TextureProcessor
|
||||||
|
/processorParam:ColorKeyColor=255,0,255,255
|
||||||
|
/processorParam:ColorKeyEnabled=True
|
||||||
|
/processorParam:GenerateMipmaps=False
|
||||||
|
/processorParam:PremultiplyAlpha=True
|
||||||
|
/processorParam:ResizeToPowerOfTwo=False
|
||||||
|
/processorParam:MakeSquare=False
|
||||||
|
/processorParam:TextureFormat=Color
|
||||||
|
/build:Pokemon/Overworld/Shiny/6_mega_x.png
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Shiny/6_mega_x.png
Normal file
BIN
2.5DHero/2.5DHeroContent/Pokemon/Overworld/Shiny/6_mega_x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Loading…
x
Reference in New Issue
Block a user