osrs-tools
Version:
A JavaScript package to provide JSON data for all current Old School RuneScape quests. This package aims to help junior software developers create tools related to Old School RuneScape. It's a work in progress, and issues should be reported to jamescer@ha
29 lines (28 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Assignment = void 0;
// A Class that represents an assignment of a task to a player.
// An assignment is a specific instance of a task, with a specific quantity and requirements.
// The assignment is the actual task given to a player, which is based on the Task.
class Assignment {
constructor(name, quantity, requirements, extendedAmountMin, extendedAmountMax) {
this.name = name;
this.quantity = quantity;
this.requirements = requirements;
this.extendedAmountMin = extendedAmountMin !== null && extendedAmountMin !== void 0 ? extendedAmountMin : null;
this.extendedAmountMax = extendedAmountMax !== null && extendedAmountMax !== void 0 ? extendedAmountMax : null;
}
/**
* Get the task name
*/
getName() {
return this.name;
}
/**
* Get the quantity of the task
*/
getQuantity() {
return this.quantity;
}
}
exports.Assignment = Assignment;