@kitten-science/kitten-analysts
Version:
20 lines • 700 B
JavaScript
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js";
import { gaugeFactory } from "./factory.js";
export const kg_race_standing = (cache, remote) => gaugeFactory({
cache,
extract(client_type, guid, location, element, subject) {
subject.set({
client_type,
guid,
label: ucfirst(element.title),
location,
name: element.name,
}, element.standing);
},
help: "Your current standing with the given race.",
labelNames: ["client_type", "guid", "name", "label", "location"],
name: "kg_race_standing",
remote,
require: "getRaces",
});
//# sourceMappingURL=kg_race_standing.js.map