osrs-tools
Version:
A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information
26 lines (25 loc) • 1.04 kB
JavaScript
/**
* Represents a product that an NPC can make for players.
* @property {string} product - Name of the product (e.g., "Skeletal bottoms").
* @property {boolean} members - Whether the product is members-only.
* @property {string} [facility] - Facility required (if any).
* @property {Object} [skills] - Skills required (e.g., { Crafting: 60 }).
* @property {number} [xp] - XP awarded for making the product.
* @property {Item[]} materials - Materials required.
*/
export class NpcProduct {
product; // Name of the product (e.g., "Skeletal bottoms")
members; // Whether the product is members-only
facility; // Facility required (if any)
skills; // Skills required (e.g., { Crafting: 60 })
xp; // XP awarded for making the product
materials;
constructor(product, members, materials, facility, skills, xp) {
this.product = product;
this.members = members;
this.facility = facility;
this.skills = skills;
this.xp = xp;
this.materials = materials;
}
}