server: API — expose mapX/mapY in cities and basePrice in market

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 00:11:38 +02:00
parent 1568520533
commit 123b67952e
2 changed files with 3 additions and 0 deletions
@@ -14,6 +14,8 @@ const citySelect = {
riskLevel: true,
policePressure: true,
economyModifier: true,
mapX: true,
mapY: true,
} as const;
export const citiesRoutes: FastifyPluginAsync = async (app) => {
@@ -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,