From 075028075b283dc527440932fe34364572a6c305 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 13 Apr 2013 13:36:41 -0400 Subject: [PATCH] Update DH to count Discipline properly --- libs/demonhunter.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/libs/demonhunter.php b/libs/demonhunter.php index 0423bf1..16f0c63 100644 --- a/libs/demonhunter.php +++ b/libs/demonhunter.php @@ -59,9 +59,21 @@ class DemonHunter extends DiabloClass { } function miscScore() { - return 1 + ($this->stats->getStat('+Maximum Discipline') / 2 + - $this->stats->getStat('+Hatred Regenerated per Second') * 2 + - $this->stats->getStat('+Discipline Regenerated per Second') * 15) / 100; + if($this->type == 'pvp') { + $multiplier = .30; + $divisor = 100; + } else { + $multiplier = .15; + $divisor = 200; + } + + $miscScore = 1 + + $this->stats->getStat('+Hatred Regenerated per Second') / 100 * 2 + + $this->stats->getStat('+Maximum Discipline') / $divisor + + $this->stats->getStat('+Discipline Regenerated per Second') * $multiplier; + + return $miscScore; + } protected