@kitten-science/kitten-analysts
Version:
22 lines • 885 B
JavaScript
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,
extract(client_type, guid, location, element, subject) {
subject.set({
client_type,
craftable: element.craftable.toString(),
guid,
label: ucfirst(element.label),
location,
name: element.name,
}, roundTo(element.maxValue, 2));
},
help: "The current limit of your storage pool for the given resource.",
labelNames: ["client_type", "guid", "name", "label", "location", "craftable"],
name: "kg_resource_max_value",
remote,
require: "getResourcePool",
});
//# sourceMappingURL=kg_resource_max_value.js.map