Fix artifact count bug
This commit is contained in:
parent
ce5493823c
commit
f4a03dfb40
@ -24,11 +24,13 @@ $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);
|
Reference in New Issue
Block a user