Implemented Mega Bracelet and its functionality

This commit is contained in:
CaptainSegis 2016-10-26 10:43:19 -05:00
parent d22d1fd5d8
commit 33ed1677dd
4 changed files with 23 additions and 0 deletions
2.5DHero
2.5DHero
2.5DHero.vbproj
Battle/BattleSystemV2
Pokemon/Items/KeyItems
2.5DHeroContent/Items

@ -1055,6 +1055,7 @@
<Compile Include="Pokemon\Items\KeyItems\CrystalWing.vb" />
<Compile Include="Pokemon\Items\KeyItems\EmptySeaMap.vb" />
<Compile Include="Pokemon\Items\KeyItems\GoodRod.vb" />
<Compile Include="Pokemon\Items\KeyItems\MegaBracelet.vb" />
<Compile Include="Pokemon\Items\KeyItems\GSBall.vb" />
<Compile Include="Pokemon\Items\KeyItems\ItemFinder.vb" />
<Compile Include="Pokemon\Items\KeyItems\KeyItem.vb" />

@ -642,6 +642,12 @@
End Sub
Private Sub MainMenuAddMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal Index As Integer)
'Checks if the player has the Mega Bracelet.
If Not (Core.Player.Inventory.GetItemAmount(576) > 0) Then
Exit Sub
End If
If _mainMenuIndex >= 3 Then
_mainMenuIndex = 0
End If

@ -0,0 +1,16 @@
Namespace Items.KeyItems
<Item(576, "Mega Bracelet")>
Public Class MegaBracelet
Inherits KeyItem
Public Overrides ReadOnly Property Description As String = "This bracelet contains an untold power that somehow enables Pokémon carrying a Mega Stone to Mega Evolve in battle. "
Public Sub New()
_textureRectangle = New Rectangle(312, 288, 24, 24)
End Sub
End Class
End Namespace

Binary file not shown.

Before

(image error) Size: 94 KiB

After

(image error) Size: 95 KiB