1
0
Fork 0

Clear class specific modules

This commit is contained in:
Andrew Tomaka 2012-11-25 22:39:47 -05:00
parent 239ecffa0e
commit d43dc90c29
2 changed files with 2 additions and 33 deletions

View File

@ -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 { }

View File

@ -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 { }