DH requires DPS to be modified by attacks per second

This commit is contained in:
Andrew Tomaka 2013-04-09 23:02:03 -04:00
parent 9c42d150e0
commit 7b717c9c6a
2 changed files with 17 additions and 10 deletions

View file

@ -55,6 +55,13 @@ class DemonHunter extends DiabloClass {
$this->stats->getStat('+Discipline Regenerated per Second') * 15) / 100;
}
function modifyDPSUnbuffed() {
parent::modifyDPSUnbuffed();
$this->stats->stats['DPS Unbuffed'] = $this->stats->stats['DPS Unbuffed'] /
(1 + $this->stats->stats['Attacks per Second'] / 2);
}
protected
function calculateEHP() {
if($this->type == 'pvp') {

View file

@ -103,6 +103,16 @@ class DiabloClass {
return $this->stats->getStat('Paragon Level') == 100;
}
function modifyDPSUnbuffed() {
if($this->type == 'pvp') {
$eliteDivisor = 1;
} else {
$eliteDivisor = 2;
}
$this->stats->stats['DPS Unbuffed'] = $this->stats->getStat('DPS Unbuffed') *
max(1, 1 + ($this->stats->getStat('+DPS Against Elites') / $eliteDivisor));
}
private
function elementalDamage() {
$totalElemental = 0;
@ -135,16 +145,6 @@ class DiabloClass {
}
}
function modifyDPSUnbuffed() {
if($this->type == 'pvp') {
$eliteDivisor = 1;
} else {
$eliteDivisor = 2;
}
$this->stats->stats['DPS Unbuffed'] = $this->stats->getStat('DPS Unbuffed') *
max(1, 1 + ($this->stats->getStat('+DPS Against Elites') / $eliteDivisor));
}
function modifyEHP() {
$this->calculateEHP();
}