UNPKG

@kitten-science/kitten-analysts

Version:
21 lines 784 B
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js"; import { gaugeFactory } from "./factory.js"; export const kg_resource_rate = (cache, remote) => gaugeFactory({ cache, extract(client_type, guid, location, element, subject) { subject.set({ client_type, craftable: element.craftable.toString(), guid, label: ucfirst(element.label), location, name: element.name, }, element.rate); }, help: "How many of the given resource are produced every second.", labelNames: ["client_type", "guid", "name", "label", "location", "craftable"], name: "kg_resource_rate", remote, require: "getResourcePool", }); //# sourceMappingURL=kg_resource_rate.js.map