diff --git a/README.md b/README.md index 05d07b4..fd75e9f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ npm install wow-classic-items const Database = require('wow-classic-items') const items = new Database.Items(options) const professions = new Database.Professions(options) +const zones = new Database.Zones(options) ``` `items` is functionally identical to an array and can be used as such: ```js @@ -54,7 +55,7 @@ professions.get('Alchemy') // .get returns specified profession name: 'Some Random Boss', // Only set on Boss Drop zone: [209], // Only set on Zone Drop dropChance: 0.33, // Only set on Drops - quests: [{ questId: 256, name: 'Some Random Quest' }] // Only set on Quest + quests: [{ questId: 256, name: 'Some Random Quest', faction: 'Horde' }] // Only set on Quest } }, ...] ``` diff --git a/index.js b/index.js index 46776bb..3e36a4f 100644 --- a/index.js +++ b/index.js @@ -86,4 +86,13 @@ class Professions extends Database { } } -module.exports = { Items, Professions } +/** + * Zone Database + */ +class Zones extends Database { + constructor (options) { + super('zones', options) + } +} + +module.exports = { Items, Professions, Zones } diff --git a/package.json b/package.json index 6f67470..abdbb25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wow-classic-items", - "version": "0.6.0", + "version": "0.6.1", "description": "Collection of all WoW Classic items.", "main": "index.js", "scripts": {