diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-19 21:34:58 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-19 21:38:16 +0200 |
commit | 8e2995978aa4dcf17f6d5d674b95b355c851aae7 (patch) | |
tree | fa395f976ca2d1319a49faccbac0c156e5c0468b /play.js | |
parent | b221ffc612610452e7949b9dd72ac25411766109 (diff) | |
download | plantagenet-8e2995978aa4dcf17f6d5d674b95b355c851aae7.tar.gz |
Cap influence to 45.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1588,8 +1588,8 @@ function on_update() { ui.fortress.classList.toggle("york", fortress < 0) ui.fortress.classList.toggle("lancaster", fortress >= 0) - ui.influence.style.top = (track_xy[Math.abs(view.influence)][1]) + "px" - ui.influence.style.left = (track_xy[Math.abs(view.influence)][0]) + "px" + ui.influence.style.top = (track_xy[Math.min(45,Math.abs(view.influence))][1]) + "px" + ui.influence.style.left = (track_xy[Math.min(45,Math.abs(view.influence))][0]) + "px" ui.influence.classList.toggle("york", view.influence < 0) ui.influence.classList.toggle("lancaster", view.influence >= 0) |