|
|
|
@ -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;
|
|
|
|
|