No DR on EHP in PvP
This commit is contained in:
parent
f6a2ca1b61
commit
34462191bb
2 changed files with 17 additions and 3 deletions
|
@ -8,6 +8,10 @@ class Barbarian extends DiabloClass {
|
||||||
$this->calculateEHP();
|
$this->calculateEHP();
|
||||||
$ehp = $this->stats->getStat('EHP Unbuffed');
|
$ehp = $this->stats->getStat('EHP Unbuffed');
|
||||||
|
|
||||||
|
if($this->type == 'pvp') {
|
||||||
|
return $ehp / 10000;
|
||||||
|
}
|
||||||
|
|
||||||
if($ehp < 1000000) {
|
if($ehp < 1000000) {
|
||||||
return $ehp / 10000;
|
return $ehp / 10000;
|
||||||
} elseif(1000000 <= $ehp && $ehp <= 2000000) {
|
} elseif(1000000 <= $ehp && $ehp <= 2000000) {
|
||||||
|
|
|
@ -33,8 +33,12 @@ class DiabloClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hallScore() {
|
function hallScore() {
|
||||||
return $this->DPSScore() * $this->EHPScore() * $this->sustainScore()
|
$hallScore = $this->DPSScore() * $this->EHPScore() * $this->sustainScore()
|
||||||
* $this->moveScore() * $this->paragonScore() * $this->miscScore();
|
* $this->moveScore() * $this->miscScore();
|
||||||
|
if($this->type == 'pve') {
|
||||||
|
$hallScore *= $this->paragonScore();
|
||||||
|
}
|
||||||
|
return $hallScore;
|
||||||
}
|
}
|
||||||
|
|
||||||
function DPSScore() {
|
function DPSScore() {
|
||||||
|
@ -49,8 +53,14 @@ class DiabloClass {
|
||||||
$effectiveLS = $this->stats->getStat('DPS Unbuffed') *
|
$effectiveLS = $this->stats->getStat('DPS Unbuffed') *
|
||||||
$this->stats->getStat('Life Steal') * .5;
|
$this->stats->getStat('Life Steal') * .5;
|
||||||
$mitigation = $this->stats->getStat('EHP Unbuffed') / $this->stats->getStat('Life');
|
$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) +
|
(1 + ($this->stats->getStat('Attacks per Second') - 1) / 2) +
|
||||||
$effectiveLS + $this->stats->getStat('Life per Second')) /
|
$effectiveLS + $this->stats->getStat('Life per Second')) /
|
||||||
($this->stats->getStat('Life') * $this->EHPScore() * 10000 /
|
($this->stats->getStat('Life') * $this->EHPScore() * 10000 /
|
||||||
|
|
Loading…
Reference in a new issue