Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
23d2728449 | |||
f4a03dfb40 |
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user