Skip to content

Commit

Permalink
Fix constant related error in pet browser (#1115)
Browse files Browse the repository at this point in the history
Blizzard keep renaming the constants used to determine the number of
pet slots a hunter can have, so we're just going to hardcode it and hope
they never bother to add more stable slots.
  • Loading branch information
Meorawr authored Aug 13, 2024
1 parent 23e9333 commit ca75661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion totalRP3/UI/Browsers/PetBrowser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ local function GetPetCompanionProfile(petName)
end

local function GetNumPetSlots()
return Constants.PetConsts.NUM_PET_SLOTS;
-- Blizzard can't decide on a consistent or sane naming scheme that lasts
-- more than a single patch.
return 200;
end

local function IsValidPetSlot(slotIndex)
Expand Down

0 comments on commit ca75661

Please sign in to comment.