Steel Beam move and tutor added

This commit is contained in:
TheOmegaGhost 2020-04-17 01:35:44 -03:00
parent df5a07c572
commit c1bc61aa27
5 changed files with 7 additions and 25 deletions

Binary file not shown.

Binary file not shown.

View File

@ -26825,6 +26825,9 @@
<None Include="Content\Data\Scripts\mtmortar\bf1map.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content Include="Content\Data\Scripts\olivine\steeltutor.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Content\Data\Scripts\pallet\labmap.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

View File

@ -52,37 +52,16 @@ Namespace BattleSystem.Moves.Steel
'#End
Me.AIField1 = AIField.Damage
Me.AIField2 = AIField.Recoil
Me.AIField2 = AIField.Nothing
End Sub
Private Sub InflictCrashDamage(ByVal own As Boolean, ByVal BattleScreen As BattleScreen)
Public Overrides Sub PreAttack(Own As Boolean, BattleScreen As BattleScreen)
Dim p As Pokemon = BattleScreen.OwnPokemon
If own = False Then
If Own = False Then
p = BattleScreen.OppPokemon
End If
BattleScreen.Battle.InflictRecoil(own, own, BattleScreen, Me, CInt(Math.Floor(p.MaxHP / 2)), "-1", "move:steelbeam")
End Sub
Public Overrides Sub MoveMisses(own As Boolean, BattleScreen As BattleScreen)
InflictCrashDamage(own, BattleScreen)
End Sub
Public Overrides Sub MoveProtectedDetected(own As Boolean, BattleScreen As BattleScreen)
InflictCrashDamage(own, BattleScreen)
End Sub
Public Overrides Sub MoveHasNoEffect(own As Boolean, BattleScreen As BattleScreen)
InflictCrashDamage(own, BattleScreen)
End Sub
Public Overrides Sub MoveRecoil(own As Boolean, BattleScreen As BattleScreen)
Dim p As Pokemon = BattleScreen.OwnPokemon
If own = False Then
p = BattleScreen.OppPokemon
End If
BattleScreen.Battle.InflictRecoil(own, own, BattleScreen, Me, CInt(Math.Floor(p.MaxHP / 2)), "-1", "move:steelbeam")
BattleScreen.Battle.ReduceHP(CInt(Math.Floor(p.MaxHP / 2)), Own, Own, BattleScreen, "", "move:steelbeam")
End Sub
End Class