From da1d4438079d9711a629b65b9503db7ad7b6bfb9 Mon Sep 17 00:00:00 2001 From: Adrien Jaguenet Date: Fri, 18 Sep 2026 05:56:54 +0200 Subject: [PATCH] Improved tile information, optimized stack pathfinding --- client/css/style.css | 1 + client/index.html | 1 + client/js/game_screen.js | 8 ++++ client/js/game_screen/panels.js | 69 +++++++++++++++++++++++++++++- client/js/map_view/motion.js | 26 +++++++---- client/js/modals/nation.js | 5 +++ shared/data/economy.js | 2 +- shared/game_state/economy.js | 23 +++++----- shared/game_state/movement.js | 33 ++++++++++---- shared/game_state/serialization.js | 14 ++++++ shared/rules.js | 44 ++++++++++++++++++- tests/game_screen_test.js | 19 ++++++++ tests/map_view_test.js | 23 ++++++++++ tests/modals_test.js | 23 ++++++++++ tests/rules_test.js | 39 +++++++++++++++++ tests/stacking_test.js | 39 +++++++++++++++++ 16 files changed, 335 insertions(+), 34 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index fa58c05..2fcd66b 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -429,6 +429,7 @@ input:focus, select:focus { border-color: var(--accent); } } .info-section.hidden { display: none !important; } .info-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; } +.tile-gdp-mod { font-size: 12px; color: var(--muted); padding-left: 12px; font-variant-numeric: tabular-nums; } #bottom-panel .row { justify-content: flex-start; margin-top: 10px; } .health-row { display: flex; align-items: center; gap: 8px; } .health-bar { width: 220px; height: 12px; background: rgba(30, 0, 0, 0.8); border-radius: 6px; overflow: hidden; margin-top: 6px; } diff --git a/client/index.html b/client/index.html index 649389b..efb4ea2 100644 --- a/client/index.html +++ b/client/index.html @@ -129,6 +129,7 @@
+