Compare commits

..

No commits in common. "master" and "1.6.3" have entirely different histories.

2 changed files with 6 additions and 8 deletions

View File

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

View File

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