osrs-tools
Version:
A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information
50 lines (49 loc) • 1 kB
JavaScript
/**
* Slayer Buy class
* Represents a slayer reward item or service that can be purchased with slayer points
* Reference: https://oldschool.runescape.wiki/w/Slayer#Rewards
*/
export class SlayerBuy {
item;
cost;
notes;
requirements;
wikiUrl;
constructor(data) {
this.item = data.item;
this.cost = data.cost;
this.notes = data.notes;
this.requirements = data.requirements;
this.wikiUrl = data.wikiUrl;
}
/**
* Get the item name
*/
getItem() {
return this.item;
}
/**
* Get the cost in slayer points
*/
getCost() {
return this.cost;
}
/**
* Get the description/notes of the buy
*/
getNotes() {
return this.notes;
}
/**
* Get any requirements for this buy
*/
getRequirements() {
return this.requirements;
}
/**
* Get the Wiki URL if available
*/
getWikiUrl() {
return this.wikiUrl;
}
}