From 123b67952eab93917dec7d0eb2b71344e660773b Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Wed, 10 Jun 2026 00:11:38 +0200 Subject: [PATCH] =?UTF-8?q?server:=20API=20=E2=80=94=20expose=20mapX/mapY?= =?UTF-8?q?=20in=20cities=20and=20basePrice=20in=20market?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cities endpoint now returns map coordinates for the SVG map renderer. Market endpoint includes basePrice so the client can compute price trend deltas relative to the item base value. Co-Authored-By: Claude Sonnet 4.6 --- server/src/modules/cities/cities.routes.ts | 2 ++ server/src/modules/market/market.service.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/server/src/modules/cities/cities.routes.ts b/server/src/modules/cities/cities.routes.ts index 4edd962..607b58e 100644 --- a/server/src/modules/cities/cities.routes.ts +++ b/server/src/modules/cities/cities.routes.ts @@ -14,6 +14,8 @@ const citySelect = { riskLevel: true, policePressure: true, economyModifier: true, + mapX: true, + mapY: true, } as const; export const citiesRoutes: FastifyPluginAsync = async (app) => { diff --git a/server/src/modules/market/market.service.ts b/server/src/modules/market/market.service.ts index 55d1edf..7665932 100644 --- a/server/src/modules/market/market.service.ts +++ b/server/src/modules/market/market.service.ts @@ -48,6 +48,7 @@ export async function getCurrentMarket(playerId: string) { name: p.item.name, buyPrice: p.buyPrice, sellPrice: p.sellPrice, + basePrice: p.item.basePrice, demand: p.demand, supply: p.supply, rarity: p.item.rarity,