A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D
/** The town hall: the heart of the town, founded with it and never built. */
import { free, type Kinds } from "./kind.ts"
export const townHall = {
townhall: {
id: "townhall", title: "Town hall", blurb: "the heart of the town: storage, taxes, and a walker with provisions",
category: "storage", size: 3, half: 20, stories: 2, roof: "flat", bays: 2, window: 8, topper: "flag",
cost: { coins: 0, materials: {} }, upkeep: 0, workers: 0, crew: "settlers", unlock: free, buildable: false,
holds: { accepts: "all", cap: 100 }, carriers: 6,
service: { service: "goods", seconds: 8, range: 20 }, appeal: { value: 4, reach: 4, full: 2 },
upgrade: {
title: "Guildhall", blurb: "the town hall with a clock tower: it holds twice as much, sends more carriers, its walker goes further, and it runs the town for a tenth less", rank: 1,
cost: { coins: 500, materials: { planks: 30, stone: 40, tools: 6 } }, upkeep: 8,
cap: 200, carriers: 8, service: { seconds: 6, range: 26 }, appeal: { value: 6, reach: 5, full: 2 }, admin: 0.1,
next: {
title: "City hall", blurb: "a domed seat of the city: it holds the most, sends the most carriers, walks furthest, and runs the city for a fifth less", rank: 2,
cost: { coins: 1200, materials: { planks: 50, stone: 80, tools: 15, cloth: 20 } }, upkeep: 16,
cap: 300, carriers: 10, service: { seconds: 5, range: 32 }, appeal: { value: 8, reach: 6, full: 3 }, admin: 0.2
}
}
}
} satisfies Kinds