Skip to content

Commit

Permalink
Use :SetAllowWin() instead of fake journal IDs where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jul 15, 2024
1 parent 815946a commit f8d33e9
Show file tree
Hide file tree
Showing 39 changed files with 72 additions and 31 deletions.
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/Akumai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Aku'mai Discovery", 48, -2891)
local mod, CL = BigWigs:NewBoss("Aku'mai Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(213334) -- Aku'mai Season of Discovery
mod:SetEncounterID(2891)
mod:SetRespawnTime(10)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/BaronAquanis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Baron Aquanis Discovery", 48, -2694)
local mod, CL = BigWigs:NewBoss("Baron Aquanis Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(202699) -- Baron Aquanis Season of Discovery
mod:SetEncounterID(2694)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Locals
Expand Down
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/Gelihast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Gelihast Discovery", 48, -2704)
local mod, CL = BigWigs:NewBoss("Gelihast Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(204921) -- Gelihast Season of Discovery
mod:SetEncounterID(2704)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/Ghamoo-ra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Ghamoo-ra Discovery", 48, -2697)
local mod, CL = BigWigs:NewBoss("Ghamoo-ra Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(201722) -- Ghamoo-ra Season of Discovery
mod:SetEncounterID(2697)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Locals
Expand Down
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/LadySarevess.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Lady Sarevess Discovery", 48, -2699)
local mod, CL = BigWigs:NewBoss("Lady Sarevess Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(204068) -- Lady Sarevess Season of Discovery
mod:SetEncounterID(2699)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/LorgusJett.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Lorgus Jett Discovery", 48, -2710)
local mod, CL = BigWigs:NewBoss("Lorgus Jett Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(207356, 207358) -- Lorgus Jett Season of Discovery, Blackfathom Tide Priestess
mod:SetEncounterID(2710)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion BlackfathomDeeps_Classic/TwilightLordKelris.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Twilight Lord Kelris Discovery", 48, -2825)
local mod, CL = BigWigs:NewBoss("Twilight Lord Kelris Discovery", 48)
if not mod then return end
mod:RegisterEnableMob(209678) -- Twilight Lord Kelris Season of Discovery
mod:SetEncounterID(2825)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/CrowdPummeler9-60.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Crowd Pummeler 9-60 Discovery", 90, -2899)
local mod, CL = BigWigs:NewBoss("Crowd Pummeler 9-60 Discovery", 90)
if not mod then return end
mod:RegisterEnableMob(215728) -- Crowd Pummeler 9-60
mod:SetEncounterID(2899)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/Electrocutioner6000.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Electrocutioner 6000 Discovery", 90, -2927)
local mod, CL = BigWigs:NewBoss("Electrocutioner 6000 Discovery", 90)
if not mod then return end
mod:RegisterEnableMob(220072) -- Electrocutioner 6000
mod:SetEncounterID(2927)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Locals
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/Grubbis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Grubbis Discovery", 90, -2925)
local mod, CL = BigWigs:NewBoss("Grubbis Discovery", 90)
if not mod then return end
mod:RegisterEnableMob(217969, 217280) -- Blastmaster Emi Shortfuse, Grubbis
mod:SetEncounterID(2925)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/MechanicalMenagerie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Mechanical Menagerie Discovery", 90, -2935)
local mod, CL = BigWigs:NewBoss("Mechanical Menagerie Discovery", 90)
if not mod then return end
mod:RegisterEnableMob(218242, 218243, 218244, 218245) -- STX-04/BD (Dragon), STX-13/LL (Sheep), STX-25/NB (Squirrel), STX-37/CN (Chicken)
mod:SetEncounterID(2935)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Locals
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/MekgineerThermaplugg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Mekgineer Thermaplugg Discovery", 90, -2940)
local mod, CL = BigWigs:NewBoss("Mekgineer Thermaplugg Discovery", 90)
if not mod then return end
mod:RegisterEnableMob(
218537, -- Mekgineer Thermaplugg
Expand All @@ -12,6 +12,7 @@ mod:RegisterEnableMob(
218974 -- STX-99/XD
)
mod:SetEncounterID(2940)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/ViscousFallout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Viscous Fallout Discovery", 90, -2928)
local mod, CL = BigWigs:NewBoss("Viscous Fallout Discovery", 90)
if not mod then return end
mod:RegisterEnableMob(220007) -- Viscous Fallout
mod:SetEncounterID(2928)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
2 changes: 2 additions & 0 deletions StormCliffs_Classic/Azuregos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
local mod, CL = BigWigs:NewBoss("Azuregos Season of Discovery", 2791)
if not mod then return end
mod:RegisterEnableMob(6109)
mod:SetEncounterID(3027)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/AtalaiDefenders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Atal'ai Defenders Discovery", 109, -2954)
local mod, CL = BigWigs:NewBoss("Atal'ai Defenders Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(
221759, 221637, -- Gasher
Expand All @@ -13,6 +13,7 @@ mod:RegisterEnableMob(
218922 -- Hukku
)
mod:SetEncounterID(2954)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/Atalalarion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Atal'alarion Discovery", 109, -2952)
local mod, CL = BigWigs:NewBoss("Atal'alarion Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(218624) -- Atal'alarion
mod:SetAllowWin(true)
mod:SetEncounterID(2952)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/AvatarOfHakkar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Avatar of Hakkar Discovery", 109, -2956)
local mod, CL = BigWigs:NewBoss("Avatar of Hakkar Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(221426, 221396, 221394) -- Atal'ai Ritualist, Hakkari Bloodkeeper, Avatar of Hakkar
mod:SetEncounterID(2956)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/DreamscytheAndWeaver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Dreamscythe and Weaver Discovery", 109, -2955)
local mod, CL = BigWigs:NewBoss("Dreamscythe and Weaver Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(220833, 220864) -- Dreamscythe, Weaver
mod:SetEncounterID(2955)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/FesteringRotslime.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Festering Rotslime Discovery", 109, -2953)
local mod, CL = BigWigs:NewBoss("Festering Rotslime Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(218819) -- Festering Rotslime
mod:SetEncounterID(2953)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Locals
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/JammalanAndOgom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Jammal'an and Ogom Discovery", 109, -2957)
local mod, CL = BigWigs:NewBoss("Jammal'an and Ogom Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(218721, 218718) -- Jammal'an the Prophet, Ogom the Wretched
mod:SetEncounterID(2957)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/MorphazAndHazzas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Morphaz and Hazzas Discovery", 109, -2958)
local mod, CL = BigWigs:NewBoss("Morphaz and Hazzas Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(221943, 221942) -- Hazzas, Morphaz
mod:SetEncounterID(2958)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Locals
Expand Down
3 changes: 2 additions & 1 deletion SunkenTemple_Classic/ShadeOfEranikus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Shade of Eranikus Discovery", 109, -2959)
local mod, CL = BigWigs:NewBoss("Shade of Eranikus Discovery", 109)
if not mod then return end
mod:RegisterEnableMob(218571) -- Shade of Eranikus
mod:SetEncounterID(2959)
mod:SetAllowWin(true)
mod:SetStage(1)

--------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions TheTaintedScar_Classic/Kazzak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
local mod, CL = BigWigs:NewBoss("Lord Kazzak Season of Discovery", 2789)
if not mod then return end
mod:RegisterEnableMob(12397)
mod:SetEncounterID(3026)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
1 change: 1 addition & 0 deletions World_Classic/Azuregos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if BigWigsLoader.isSeasonOfDiscovery then return end
local mod, CL = BigWigs:NewBoss("Azuregos", -1447)
if not mod then return end
mod:RegisterEnableMob(6109)
mod:SetAllowWin(true)
mod.otherMenu = -947
mod.worldBoss = 6109

Expand Down
1 change: 1 addition & 0 deletions World_Classic/Emeriss.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
local mod, CL = BigWigs:NewBoss("Emeriss", -1440)
if not mod then return end
mod:RegisterEnableMob(14889)
mod:SetAllowWin(true)
mod.otherMenu = -947
mod.worldBoss = 14889

Expand Down
1 change: 1 addition & 0 deletions World_Classic/Kazzak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if BigWigsLoader.isSeasonOfDiscovery then return end
local mod, CL = BigWigs:NewBoss("Lord Kazzak", -1419)
if not mod then return end
mod:RegisterEnableMob(12397)
mod:SetAllowWin(true)
mod.otherMenu = -947
mod.worldBoss = 12397

Expand Down
1 change: 1 addition & 0 deletions World_Classic/Lethon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
local mod, CL = BigWigs:NewBoss("Lethon", -1425)
if not mod then return end
mod:RegisterEnableMob(14888)
mod:SetAllowWin(true)
mod.otherMenu = -947
mod.worldBoss = 14888

Expand Down
1 change: 1 addition & 0 deletions World_Classic/Taerar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
local mod, CL = BigWigs:NewBoss("Taerar", -1431)
if not mod then return end
mod:RegisterEnableMob(14890)
mod:SetAllowWin(true)
mod.otherMenu = -947
mod.worldBoss = 14890

Expand Down
1 change: 1 addition & 0 deletions World_Classic/Ysondre.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
local mod, CL = BigWigs:NewBoss("Ysondre", -1444)
if not mod then return end
mod:RegisterEnableMob(14887)
mod:SetAllowWin(true)
mod.otherMenu = -947
mod.worldBoss = 14887

Expand Down
3 changes: 2 additions & 1 deletion ZulGurub_Classic/Arlokk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
-- Module declaration
--

local mod = BigWigs:NewBoss("High Priestess Arlokk", 309, -791)
local mod = BigWigs:NewBoss("High Priestess Arlokk", 309)
if not mod then return end
mod:RegisterEnableMob(14515)
mod:SetEncounterID(791)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion ZulGurub_Classic/EdgeOfMadness.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
-- Module declaration
--

local mod = BigWigs:NewBoss("Edge of Madness", 309, -788)
local mod = BigWigs:NewBoss("Edge of Madness", 309)
if not mod then return end
mod:RegisterEnableMob(15082, 15083, 15084, 15085) -- Gri'lek, Hazza'rah, Renataki, Wushoolay
mod:SetEncounterID(788)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion ZulGurub_Classic/Gahzranka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
-- Module declaration
--

local mod = BigWigs:NewBoss("Gahz'ranka", 309, -790)
local mod = BigWigs:NewBoss("Gahz'ranka", 309)
if not mod then return end
mod:RegisterEnableMob(15114)
mod:SetEncounterID(790)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
3 changes: 2 additions & 1 deletion ZulGurub_Classic/Hakkar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
--
-- TODO Hard mode abilities

local mod, CL = BigWigs:NewBoss("Hakkar", 309, -793)
local mod, CL = BigWigs:NewBoss("Hakkar", 309)
if not mod then return end
mod:RegisterEnableMob(14834)
mod:SetEncounterID(793)
mod:SetAllowWin(true)

--------------------------------------------------------------------------------
-- Localization
Expand Down
Loading

0 comments on commit f8d33e9

Please sign in to comment.