Fix artifact count bug

This commit is contained in:
Skylar Ittner 2017-05-13 23:46:43 -06:00
parent ce5493823c
commit f4a03dfb40

View File

@ -24,10 +24,12 @@ $gameinfo['owneruuid'] = "";
// calculate artifact score
$gameinfo['artifact'] = 0;
$templife = $gameinfo['currentlife'];
while ($templife > 100) {
$gameinfo['artifact']++;
$templife -= 75;
if ($gameinfo['currentlife'] > 100) {
$templife = $gameinfo['currentlife'];
while ($templife > 100) {
$gameinfo['artifact'] ++;
$templife -= 75;
}
}
$data['stats'] = $gameinfo;