Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
23d2728449 | |||
f4a03dfb40 |
@ -8,7 +8,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"catfan/medoo": "dev-master",
|
||||
"catfan/medoo": "1.1.3",
|
||||
"anthonymartin/geo-location": "^1.0"
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
Reference in New Issue
Block a user