From b072231ba7b68ac93a538b8226a871244b336939 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Thu, 29 Oct 2026 01:57:00 +0100 Subject: [PATCH] feat: map around 0|0 with negative coordinates and DS continents Coordinates run from -500 to 499; continents keep their Die Staemme names counted from the top-left, so 0|0 is the corner of K44/K45/K54/K55. Co-Authored-By: Claude Opus 5.5 --- app/components/map/InfoCard.vue | 1 - app/components/map/WorldMap.vue | 15 +++++++----- app/mock/server.ts | 42 +++++++++++++++++++++------------ app/pages/map/[worldId].vue | 17 ++++++------- app/types/map.ts | 5 +++- app/utils/map.ts | 12 ++++++++++ app/utils/military.ts | 6 ++--- i18n/pages/map.ts | 2 +- 8 files changed, 65 insertions(+), 35 deletions(-) create mode 100644 app/utils/map.ts diff --git a/app/components/map/InfoCard.vue b/app/components/map/InfoCard.vue index 092a28d..2713b03 100644 --- a/app/components/map/InfoCard.vue +++ b/app/components/map/InfoCard.vue @@ -8,7 +8,6 @@ defineProps<{ const emit = defineEmits<{ center: [at: { x: number; y: number }] }>() const { current } = useCurrentWorld() -const continentOf = (x: number, y: number) => `K${Math.floor(y / 100)}${Math.floor(x / 100)}`