Fixed battle points price & ItemTypes access
This commit is contained in:
parent
d6a6ac5bc7
commit
d9035ac1b5
|
@ -5,11 +5,11 @@ Namespace Items.Machines
|
|||
|
||||
Inherits TechMachine
|
||||
|
||||
Public Overrides ReadOnly Property BattlePointsPrice As Integer = 32
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New(True, 1500, 213)
|
||||
CanTeachWhenGender = True
|
||||
|
||||
Me._battlePointsPrice = 32
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
If Item.CanBeHold = True Then
|
||||
MenuItems.Add(Localization.GetString("item_detail_screen_give"))
|
||||
End If
|
||||
If Item.ItemType <> net.Pokemon3D.Game.Item.ItemTypes.KeyItems And Item.CanBeTossed = True Then
|
||||
If Item.ItemType <> Game.Items.ItemTypes.KeyItems And Item.CanBeTossed = True Then
|
||||
MenuItems.Add(Localization.GetString("item_detail_screen_trash"))
|
||||
End If
|
||||
MenuItems.Add(Localization.GetString("item_detail_screen_back"))
|
||||
|
|
|
@ -278,7 +278,7 @@
|
|||
PlayerStatistics.Track("TMs/HMs used", 1)
|
||||
If Core.Player.DifficultyMode > 0 Then
|
||||
Dim TechMachine As Item = Item.GetItemByID(Me.MachineItemID)
|
||||
If TechMachine.ItemType = Item.ItemTypes.Machines Then
|
||||
If TechMachine.ItemType = Items.ItemTypes.Machines Then
|
||||
If CType(TechMachine, Items.TechMachine).IsTM = True Then
|
||||
Core.Player.Inventory.RemoveItem(Me.MachineItemID, 1)
|
||||
End If
|
||||
|
|
Loading…
Reference in New Issue