UNPKG

@kitten-science/kitten-analysts

Version:
23 lines 786 B
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js"; import { gaugeFactory } from "./factory.js"; export const kg_kittens_total = (cache, remote) => gaugeFactory({ cache, extract(client_type, guid, location, element, subject) { if (element.name !== "totalKittens") { return; } subject.set({ client_type, guid, label: ucfirst(element.label), location, type: element.type, }, element.value); }, help: "How many kittens you've had throughout your game.", labelNames: ["client_type", "guid", "label", "location", "type"], name: "kg_kittens_total", remote, require: "getStatistics", }); //# sourceMappingURL=kg_kittens_total.js.map