Skip to content

Commit

Permalink
database: return description as fallback
Browse files Browse the repository at this point in the history
allowing external addons to define their own description texts
  • Loading branch information
shagu committed Jan 4, 2024
1 parent 60998f2 commit e0ba851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function pfDatabase:IsFriendly(id)
end

function pfDatabase:BuildQuestDescription(meta)
if not meta.title or not meta.quest or not meta.QTYPE then return end
if not meta.title or not meta.quest or not meta.QTYPE then return meta.description end

if meta.QTYPE == "NPC_START" then
return string.format(pfQuest_Loc["Speak with |cff33ffcc%s|r to obtain |cffffcc00[!]|cff33ffcc %s|r"], (meta.spawn or UNKNOWN), (meta.quest or UNKNOWN))
Expand Down

0 comments on commit e0ba851

Please sign in to comment.