Clear class specific modules
This commit is contained in:
parent
239ecffa0e
commit
d43dc90c29
2 changed files with 2 additions and 33 deletions
|
@ -1,16 +1,2 @@
|
|||
<?php
|
||||
class Barbarian extends DPClass {
|
||||
function EHPScore() {
|
||||
$ehp = $this->getStat('EHP Unbuffed');
|
||||
|
||||
if($ehp < 1000000) {
|
||||
return $ehp / 10000;
|
||||
} elseif(1000000 <= $ehp && $ehp <= 2000000) {
|
||||
return 100 + ($ehp - 1000000) / 20000;
|
||||
} elseif(2000000 <= $ehp && $ehp <= 5000000) {
|
||||
return 150 + ($ehp - 2000000) / 40000;
|
||||
} elseif($ehp <= 5000000) {
|
||||
return 225 + ($ehp - 5000000) / 100000;
|
||||
}
|
||||
}
|
||||
}
|
||||
class Barbarian extends DPClass { }
|
|
@ -1,19 +1,2 @@
|
|||
<?php
|
||||
class Wizard extends DPClass {
|
||||
function EHPScore() {
|
||||
$ehp = $this->getStat('EHP Unbuffed');
|
||||
|
||||
switch($ehp) {
|
||||
case ($ehp < 250000):
|
||||
return $ehp / 5000;
|
||||
case ($ehp >= 250000 && $ehp < 450000):
|
||||
return 50 + ($ehp - 250000) / 4000;
|
||||
case ($ehp >= 450000 && $ehp < 600000):
|
||||
return 100 + ($ehp - 450000) / 3000;
|
||||
case ($ehp >= 600000 && $ehp < 1000000):
|
||||
return 150 + ($ehp - 600000) / 8000;
|
||||
case ($ehp >= 1000000):
|
||||
return 200 + ($ehp - 1000000) / 25000;
|
||||
}
|
||||
}
|
||||
}
|
||||
class Wizard extends DPClass { }
|
||||
|
|
Loading…
Reference in a new issue