UNPKG

@kitten-science/kitten-analysts

Version:
22 lines 789 B
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js"; import { gaugeFactory } from "./factory.js"; export const kg_building_value = (cache, remote) => gaugeFactory({ cache, remote, help: "How many of the given building have been built.", name: "kg_building_value", labelNames: ["client_type", "group", "guid", "name", "label", "location", "tab"], require: "getBuildings", extract(client_type, guid, location, element, subject) { subject.set({ client_type, group: element.group, guid, label: ucfirst(element.label), location, name: element.name, tab: element.tab, }, element.value); }, }); //# sourceMappingURL=kg_building_value.js.map