Animate place health bar updates (#1)

This commit is contained in:
Skylar Ittner 2019-05-22 14:15:10 -06:00
parent 2c792bfeb1
commit fc6ce34db3

View File

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