Update XpDropPlugin.java
This commit is contained in:
@@ -70,6 +70,8 @@ public class XpDropPlugin extends Plugin
|
|||||||
private static final double HITPOINT_RATIO = 1.33; // Base rate of hp xp per point damage
|
private static final double HITPOINT_RATIO = 1.33; // Base rate of hp xp per point damage
|
||||||
private static final double DMM_MULTIPLIER_RATIO = 10;
|
private static final double DMM_MULTIPLIER_RATIO = 10;
|
||||||
private static final double TL_MULTIPLIER_RATIO = 5;
|
private static final double TL_MULTIPLIER_RATIO = 5;
|
||||||
|
private static final int TWISTED_LEAGUE_WAY_OF_THE_WARRIOR = 3;
|
||||||
|
private static final int TWISTED_LEAGUE_XERICS_WISDOM = 3;
|
||||||
@Inject
|
@Inject
|
||||||
private Client client;
|
private Client client;
|
||||||
@Inject
|
@Inject
|
||||||
@@ -362,6 +364,15 @@ public class XpDropPlugin extends Plugin
|
|||||||
if (client.getWorldType().contains(WorldType.LEAGUE))
|
if (client.getWorldType().contains(WorldType.LEAGUE))
|
||||||
{
|
{
|
||||||
damageDealt = damageDealt / TL_MULTIPLIER_RATIO;
|
damageDealt = damageDealt / TL_MULTIPLIER_RATIO;
|
||||||
|
|
||||||
|
if (client.getVar(Varbits.TWISTED_LEAGUE_RELIC_3) == TWISTED_LEAGUE_WAY_OF_THE_WARRIOR)
|
||||||
|
{
|
||||||
|
damageDealt = damageDealt / 2;
|
||||||
|
}
|
||||||
|
if (client.getVar(Varbits.TWISTED_LEAGUE_RELIC_5) == TWISTED_LEAGUE_XERICS_WISDOM)
|
||||||
|
{
|
||||||
|
damageDealt = damageDealt / 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some NPCs have an XP modifier, account for it here.
|
// Some NPCs have an XP modifier, account for it here.
|
||||||
|
|||||||
Reference in New Issue
Block a user