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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user