Skip to content

Commit

Permalink
Core/BossPrototype: Add :SetJournalID(journalId)
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Oct 27, 2024
1 parent 50d5d40 commit a01d30a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Core/BossPrototype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ function boss:GetEncounterID()
end
end

--- Set the journal id used for this module. (As used by the dungeon journal)
-- Usually not set directly, but via the :NewBoss API
-- @number journalId The journal id
-- @within Enable triggers
function boss:SetJournalID(journalId)
if type(journalId) == "number" then
self.journalId = journalId
end
end

--- Get the journal id used for this module. (As used by the dungeon journal)
-- @return number
-- @within Enable triggers
Expand Down
10 changes: 10 additions & 0 deletions Core/BossPrototype_Classic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,16 @@ function boss:GetEncounterID()
end
end

--- Set the journal id used for this module. (As used by the dungeon journal)
-- Usually not set directly, but via the :NewBoss API
-- @number journalId The journal id
-- @within Enable triggers
function boss:SetJournalID(journalId)
if type(journalId) == "number" then
self.journalId = journalId
end
end

--- Get the journal id used for this module. (As used by the dungeon journal)
-- @return number
-- @within Enable triggers
Expand Down

0 comments on commit a01d30a

Please sign in to comment.