mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Added Exp calc changing GM Item property
ExpMultiplier|sng,[bool] optional second argument overrides the exp boost pokémon get when traded if set to true/1
This commit is contained in:
parent
c50c645654
commit
50c7125f71
@ -1002,8 +1002,25 @@
|
|||||||
Dim b As Double = op.BaseExperience
|
Dim b As Double = op.BaseExperience
|
||||||
|
|
||||||
Dim t As Double = 1D
|
Dim t As Double = 1D
|
||||||
If p.OT <> Core.Player.OT Then
|
If p.Item.IsGameModeItem = True Then
|
||||||
t = 1.5D
|
If CType(p.Item, GameModeItem).gmExpMultiplier <> -1D AndAlso CType(p.Item, GameModeItem).gmOverrideTradeExp = True Then
|
||||||
|
t = CType(p.Item, GameModeItem).gmExpMultiplier
|
||||||
|
Else
|
||||||
|
If p.OT <> Core.Player.OT Then
|
||||||
|
t = 1.5D
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If p.OT <> Core.Player.OT Then
|
||||||
|
t = 1.5D
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim gm As Double = 1D
|
||||||
|
If p.Item.IsGameModeItem = True Then
|
||||||
|
If CType(p.Item, GameModeItem).gmExpMultiplier <> -1D AndAlso CType(p.Item, GameModeItem).gmOverrideTradeExp = False Then
|
||||||
|
gm = CType(p.Item, GameModeItem).gmExpMultiplier
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim e As Double = 1D
|
Dim e As Double = 1D
|
||||||
@ -1037,7 +1054,7 @@
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim EXP As Integer = CInt((((a * b * L) / (5 * s)) * (((2 * L + 10) ^ 2.5D) / ((L + Lp + 10) ^ 2.5D)) + 1) * t * e * 1)
|
Dim EXP As Integer = CInt((((a * b * L) / (5 * s)) * (((2 * L + 10) ^ 2.5D) / ((L + Lp + 10) ^ 2.5D)) + 1) * t * e * gm * 1)
|
||||||
|
|
||||||
If EXP < 2 Then
|
If EXP < 2 Then
|
||||||
EXP = 2
|
EXP = 2
|
||||||
|
@ -21,6 +21,8 @@ Public Class GameModeItem
|
|||||||
Public gmCanBeUsedInBattle As Boolean = True
|
Public gmCanBeUsedInBattle As Boolean = True
|
||||||
Public gmCanBeTossed As Boolean = True
|
Public gmCanBeTossed As Boolean = True
|
||||||
Public gmBattleSelectPokemon As Boolean = True
|
Public gmBattleSelectPokemon As Boolean = True
|
||||||
|
Public gmExpMultiplier As Double = -1D
|
||||||
|
Public gmOverrideTradeExp As Boolean = False
|
||||||
|
|
||||||
Public gmSortValue As Integer = 0
|
Public gmSortValue As Integer = 0
|
||||||
|
|
||||||
|
@ -114,6 +114,11 @@ Public Class GameModeItemLoader
|
|||||||
item.gmBattlePointsPrice = CInt(value)
|
item.gmBattlePointsPrice = CInt(value)
|
||||||
Case "catchmultiplier"
|
Case "catchmultiplier"
|
||||||
item.gmCatchMultiplier = CSng(value.ReplaceDecSeparator)
|
item.gmCatchMultiplier = CSng(value.ReplaceDecSeparator)
|
||||||
|
Case "expmultiplier"
|
||||||
|
If value.Split(",").Count > 1 Then
|
||||||
|
item.gmOverrideTradeExp = CBool(value.GetSplit(1, ","))
|
||||||
|
End If
|
||||||
|
item.gmExpMultiplier = CDbl(value.GetSplit(0, ",").ReplaceDecSeparator)
|
||||||
Case "maxstack"
|
Case "maxstack"
|
||||||
item.gmMaxStack = CInt(value)
|
item.gmMaxStack = CInt(value)
|
||||||
Case "flingdamage"
|
Case "flingdamage"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user