Skip to content

[WoW] Library for providing player diminishing returns categorization.

Notifications You must be signed in to change notification settings

wardz/DRList-1.0

Repository files navigation

DRList-1.0 (Diminishing Returns Database)

World of Warcraft library for providing player diminishing returns categorization.

Contents

About

Library that contains (hopefully) the most up to date diminishing returns categorization. This is purely the diminishing return data itself with API's to determine if a spellID has a diminishing return, if it diminishes in PvE and the category it diminishes in. You will have to keep track of actual DR timers yourself.

This addon is a rewrite of DRData-1.0 by Adirelle which is no longer maintained. DRList is updated to seamlessly support all World of Warcraft clients. (Classic, TBC, Wotlk, Cataclysm, Retail)


Manual Install

Requires LibStub.

  1. Unzip file into WoW/Interface/AddOns/YourAddon/Libs/.
  2. Add an entry for Libs/DRList-1.0/DRList-1.0.xml into your addon's TOC file.

Usage with BigWigsMods Packager

Requires LibStub.

  1. Add an entry for Libs/DRList-1.0/DRList-1.0.xml into your addon's TOC file.
  2. Add this repository to the packager's externals list:

.pkgmeta file:

externals:
  Libs/DRList-1.0: https://github.com/wardz/DRList-1.0

Upgrading from DRData to DRList

  • Any references to DRData must be changed to DRList. Easiest is to just change the LibStub call so your local DRData variable points to DRList.
  • For accessing raw data tables you will now need to add the current expansion as an extra table property. E.g DRData.categoryNames to DRList.categoryNames.retail or DRList.categoryNames[DRList.gameExpansion]. The only exception for this is the spell list table.
  • Calls to Lib:IterateProviders() must be replaced with Lib:IterateSpellsByCategory() as providers are now obsolete.
  • Lib:GetSpellCategory() now has an optional second return value for spells with shared DRs.
    • Lib.spellList[spellID] now returns a table for spells with shared DRs instead of a string.

Contributing

License

Copyright (C) 2024 Wardz | MIT License.