UNPKG

osrs-tools

Version:

A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information

42 lines (41 loc) 828 B
/** * Slayer Extend class * Represents a slayer reward that increases task requirements * Reference: https://oldschool.runescape.wiki/w/Slayer#Rewards */ export class SlayerExtend { name; cost; notes; appliesTo; constructor(data) { this.name = data.name; this.cost = data.cost; this.notes = data.notes; this.appliesTo = data.appliesTo; } /** * Get the extend name */ getName() { return this.name; } /** * Get the cost in slayer points */ getCost() { return this.cost; } /** * Get the notes/description of the extend */ getNotes() { return this.notes; } /** * Get the tasks this extend applies to */ getAppliesToTasks() { return this.appliesTo; } }