Compare commits

...

2 Commits

2 changed files with 8 additions and 6 deletions

View File

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

View File

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