Compare commits

...

2 Commits

2 changed files with 8 additions and 6 deletions

View File

@ -8,7 +8,7 @@
} }
], ],
"require": { "require": {
"catfan/medoo": "dev-master", "catfan/medoo": "1.1.3",
"anthonymartin/geo-location": "^1.0" "anthonymartin/geo-location": "^1.0"
} }
} }

View File

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