2026-10-28 18:04:20 +00:00
|
|
|
import type { BuildingType } from '~/types/game'
|
|
|
|
|
|
2026-10-28 19:22:53 +00:00
|
|
|
/** Icon tile colours per building type, flat and muted: a parchment-toned fill and a dark line for border and glyph. */
|
2026-10-28 18:04:20 +00:00
|
|
|
export const BUILDING_COLORS: Record<BuildingType, { fill: string; line: string }> = {
|
2026-10-28 19:22:53 +00:00
|
|
|
headquarters: { fill: '#e6c98f', line: '#6e3a12' },
|
|
|
|
|
storage: { fill: '#dcc497', line: '#57391f' },
|
|
|
|
|
farm: { fill: '#d9cf8c', line: '#556b1e' },
|
|
|
|
|
timber_camp: { fill: '#c9cf9a', line: '#3d5a26' },
|
|
|
|
|
clay_pit: { fill: '#e2b897', line: '#7b2e16' },
|
|
|
|
|
iron_mine: { fill: '#c8c6bd', line: '#43484c' },
|
|
|
|
|
hiding_place: { fill: '#d4c2a8', line: '#4b3622' },
|
|
|
|
|
wall: { fill: '#cfc7b6', line: '#4f4a42' },
|
|
|
|
|
rally_point: { fill: '#e2b8a6', line: '#7b1e16' },
|
feat: rally point, troop movements, support, reports, scouts, battle simulator and village rename
Send attacks and support from the rally point with a live travel-time preview, see own
commands and spotted incoming attacks with countdowns and call-back, send support home
or withdraw it, read battle and support reports with an unread badge, run the battle
simulator, rename villages, and send troops straight from the map. The watchtower gets
a diorama model; the mock server answers every new intent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:16:06 +00:00
|
|
|
watchtower: { fill: '#d6c9ad', line: '#4a3420' },
|
2026-10-28 20:44:41 +00:00
|
|
|
barracks: { fill: '#d9b9a0', line: '#5c140f' },
|
|
|
|
|
stable: { fill: '#d8c49a', line: '#5a3d24' },
|
|
|
|
|
workshop: { fill: '#cbbfa8', line: '#3e2b1a' },
|
|
|
|
|
academy: { fill: '#e6d29a', line: '#6e5a1f' },
|
2026-10-30 12:54:57 +00:00
|
|
|
hospital: { fill: '#dcd3c0', line: '#5a221b' },
|
2026-10-28 18:04:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const buildingTileStyle = (type: BuildingType) => ({
|
|
|
|
|
backgroundColor: BUILDING_COLORS[type].fill,
|
|
|
|
|
borderColor: BUILDING_COLORS[type].line,
|
|
|
|
|
color: BUILDING_COLORS[type].line,
|
|
|
|
|
})
|