UNPKG

@kitten-science/kitten-analysts

Version:
22 lines 885 B
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js"; import { roundTo } from "@oliversalzburg/js-utils/math/core.js"; import { gaugeFactory } from "./factory.js"; export const kg_resource_max_value = (cache, remote) => gaugeFactory({ cache, remote, help: "The current limit of your storage pool for the given resource.", name: "kg_resource_max_value", labelNames: ["client_type", "guid", "name", "label", "location", "craftable"], require: "getResourcePool", extract(client_type, guid, location, element, subject) { subject.set({ client_type, guid, name: element.name, label: ucfirst(element.label), location, craftable: element.craftable.toString(), }, roundTo(element.maxValue, 2)); }, }); //# sourceMappingURL=kg_resource_max_value.js.map