From fc6ce34db3799fa6e8bb717c1b83ebd823089ff2 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 22 May 2019 14:15:10 -0600 Subject: [PATCH] Animate place health bar updates (#1) --- www/js/home.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/home.js b/www/js/home.js index 0c54ed8..5382d2b 100644 --- a/www/js/home.js +++ b/www/js/home.js @@ -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") {