Implement Catching Charm, fix Exp. Charm
This commit is contained in:
parent
d3ad439226
commit
58d9acc96f
|
@ -1066,6 +1066,10 @@
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
If Core.Player.Inventory.GetItemAmount(656.ToString) > 0 Then 'Exp. Charm
|
||||||
|
EXP = CInt(EXP * 1.5F)
|
||||||
|
End If
|
||||||
|
|
||||||
Return EXP
|
Return EXP
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 123 KiB |
|
@ -0,0 +1,16 @@
|
||||||
|
Namespace Items.KeyItems
|
||||||
|
|
||||||
|
<Item(657, "Catching Charm")>
|
||||||
|
Public Class CatchingCharm
|
||||||
|
|
||||||
|
Inherits KeyItem
|
||||||
|
|
||||||
|
Public Overrides ReadOnly Property Description As String = "Having one of these mysterious, unshakable charms makes it more likely you’ll get a critical catch."
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
_textureRectangle = New Rectangle(480, 408, 24, 24)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
End Namespace
|
Binary file not shown.
|
@ -507,7 +507,7 @@ nextIndex:
|
||||||
CriticalMultiplier *= 2.5F
|
CriticalMultiplier *= 2.5F
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If Core.Player.Inventory.GetItemAmount(656.ToString) > 0 Then 'Exp. Charm
|
If Core.Player.Inventory.GetItemAmount(657.ToString) > 0 Then 'Catching. Charm
|
||||||
CriticalMultiplier *= 2.0F
|
CriticalMultiplier *= 2.0F
|
||||||
End If
|
End If
|
||||||
Dim CriticalCaptureChance As Integer = CInt(Math.Floor(CriticalMultiplier / 6))
|
Dim CriticalCaptureChance As Integer = CInt(Math.Floor(CriticalMultiplier / 6))
|
||||||
|
|
Loading…
Reference in New Issue