diff --git a/libs/barbarian.php b/libs/barbarian.php index cc4d501..829d91b 100644 --- a/libs/barbarian.php +++ b/libs/barbarian.php @@ -1,16 +1,2 @@ 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; - } - } -} \ No newline at end of file +class Barbarian extends DPClass { } \ No newline at end of file diff --git a/libs/wizard.php b/libs/wizard.php index dfbebe0..89995eb 100644 --- a/libs/wizard.php +++ b/libs/wizard.php @@ -1,19 +1,2 @@ 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 { }