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' },
|
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,
|
|
|
|
|
})
|