smaitch / Grail

World of Warcraft addon to provide a database of quest information.
31 stars 20 forks source link

Covenants & Renown events/API #259

Closed yoshimo closed 3 years ago

yoshimo commented 3 years ago

Since quests on level 60 depend on the chosen covenant and the renown standing with them we should make use of

https://wow.gamepedia.com/Category:API_namespaces/C_CovenantSanctumUI

COVENANT_CHOSEN (event) returns the ID of the covenant

local covenantID = C_Covenants.GetCovenantIDs() local covenantID = C_Covenants.GetActiveCovenantID()

local level = C_CovenantSanctumUI.GetRenownLevel() local levels = C_CovenantSanctumUI.GetRenownLevels(covenantID) local rewards = C_CovenantSanctumUI.GetRenownRewardsForLevel(covenantID, renownLevel)

COVENANT_RENOWN_INTERACTION_ENDED COVENANT_RENOWN_INTERACTION_STARTED

COVENANT_SANCTUM_RENOWN_LEVEL_CHANGED COVENANT_SANCTUM_RENOWN_LEVEL_CHANGED: newRenownLevel, oldRenownLevel

So that the log includes hints about the changes so we can track quests more easily

smaitch commented 3 years ago

Grail 114 (and GitHub) has registered for some events to help process covenant changes and renown level changes to have the quest statuses updated.

yoshimo commented 3 years ago

I think we should

in addition to just invalidating quests when we observe changes.

smaitch commented 3 years ago

The latest Grail in GitHub (and 114) has logging as suggested.