From eac6c34fa18c68376085785a63ca198375edf278 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 7 Nov 2012 21:57:04 -0500 Subject: [PATCH] Limit XP Contribution Experience bonuses are counted in the formula so that someone opting to use a Ruby over an Amethyst in their helmet would not be penalized too greatly. However, with the addition of the Hellfire ring, experience bonuses were giving Hellfire ring users a huge bonus. By limiting the experience bonus to 35%, the original intent is kept in tact while preventing Hellfire abuse. --- libs/dpclass.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/dpclass.php b/libs/dpclass.php index 7f8acfe..e96a6dd 100644 --- a/libs/dpclass.php +++ b/libs/dpclass.php @@ -96,8 +96,11 @@ class DPClass { } function miscScore() { + $bonusXP = $this->getStat('Exp Bonus'); + if($bonusXP >= .35) $bonusXP -= .35; + return 1 + ($this->getStat('Melee Damage Reduction') + $this->getStat('Missile Damage Reduction') - + $this->getStat('Exp Bonus')) / 2; + + $bonusXP) / 2; } function getStat($name) {