Animate place health bar updates (#1)

master
Skylar Ittner 5 years ago
parent 2c792bfeb1
commit fc6ce34db3

@ -139,9 +139,9 @@ function updatePlaceStats(id, successCallback, errorCallback) {
}
if (place.currentlife != null && place.maxlife != null) {
app.progressbar.set("#place-health-bar", (place.currentlife / place.maxlife) * 100, 0);
app.progressbar.set("#place-health-bar", (place.currentlife / place.maxlife) * 100, 100);
} else {
app.progressbar.set("#place-health-bar", 100, 0);
app.progressbar.set("#place-health-bar", 100, 100);
}
if (typeof successCallback == "function") {

Loading…
Cancel
Save