Animate place health bar updates (#1)
This commit is contained in:
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…
x
Reference in New Issue
Block a user