1
0
Fork 0

No DR on EHP in PvP

This commit is contained in:
Andrew Tomaka 2013-04-08 19:58:34 -04:00
parent f6a2ca1b61
commit 34462191bb
2 changed files with 17 additions and 3 deletions

View File

@ -8,6 +8,10 @@ class Barbarian extends DiabloClass {
$this->calculateEHP();
$ehp = $this->stats->getStat('EHP Unbuffed');
if($this->type == 'pvp') {
return $ehp / 10000;
}
if($ehp < 1000000) {
return $ehp / 10000;
} elseif(1000000 <= $ehp && $ehp <= 2000000) {

View File

@ -33,8 +33,12 @@ class DiabloClass {
}
function hallScore() {
return $this->DPSScore() * $this->EHPScore() * $this->sustainScore()
* $this->moveScore() * $this->paragonScore() * $this->miscScore();
$hallScore = $this->DPSScore() * $this->EHPScore() * $this->sustainScore()
* $this->moveScore() * $this->miscScore();
if($this->type == 'pve') {
$hallScore *= $this->paragonScore();
}
return $hallScore;
}
function DPSScore() {
@ -49,8 +53,14 @@ class DiabloClass {
$effectiveLS = $this->stats->getStat('DPS Unbuffed') *
$this->stats->getStat('Life Steal') * .5;
$mitigation = $this->stats->getStat('EHP Unbuffed') / $this->stats->getStat('Life');
$loh = $this->stats->getStat('Life on Hit');
$rawSustainScore = 1 + $mitigation * ($this->stats->getStat('Life on Hit') *
if($this->type == 'pvp') {
$effectiveLS = 0;
$loh = 0;
}
$rawSustainScore = 1 + $mitigation * ($loh *
(1 + ($this->stats->getStat('Attacks per Second') - 1) / 2) +
$effectiveLS + $this->stats->getStat('Life per Second')) /
($this->stats->getStat('Life') * $this->EHPScore() * 10000 /