Optional
descUse description instead. This will do nothing
Optional
descriptionAn optional description of the boost. Can be a string or a function that returns a string. Made into a getter function to allow for dynamic descriptions.
// A dynamic description that returns a string
const description = (a, b) => `This is a ${a} that returns a ${b}`;
// ... create boost
const boost = boost.getBoost("boostID");
// Getter property
console.log(boost.description); // "This is a undefined that returns a undefined"
// Getter function
console.log(boost.descriptionFn("dynamic", "string")); // "This is a dynamic that returns a string"
The ID of the boost.
Optional
nameThe name of the boost.
Optional
orderThe order at which the boost is applied. Lower orders are applied first.
The function that calculates the value of the boost.
An object representing a boost.