Constructs a new boost object.
The initialization object.
The ID of the boost.
The name of the boost.
The order at which the boost is applied. Lower orders are applied first.
The function that calculates the value of the boost.
The description of the boost.
Use description instead
An 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"
Represents an individual boost object.