From 645331ad769ef4e3d4e7ef5d8468c6ce8aca8d94 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 18 Dec 2012 11:49:21 -0500 Subject: [PATCH] Fix EHP Score Correct the diminishing returns calculations for the EHP Score. The highest tier was using <= 5,000,000 instead of >= 5,000,000 causing the EHP Score for high EHP characters to be zero. --- libs/dpclass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/dpclass.php b/libs/dpclass.php index 0fa7fdc..d703f55 100644 --- a/libs/dpclass.php +++ b/libs/dpclass.php @@ -56,7 +56,7 @@ class DPClass { return 100 + ($ehp - 1000000) / 20000; } elseif(2000000 <= $ehp && $ehp <= 5000000) { return 150 + ($ehp - 2000000) / 40000; - } elseif($ehp <= 5000000) { + } elseif($ehp >= 5000000) { return 225 + ($ehp - 5000000) / 100000; } }