From ca75661d675202809e4a2ab0e6214e9c28c1b7e5 Mon Sep 17 00:00:00 2001 From: Daniel Yates Date: Tue, 13 Aug 2024 19:59:10 +0100 Subject: [PATCH] Fix constant related error in pet browser (#1115) 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. --- totalRP3/UI/Browsers/PetBrowser.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/totalRP3/UI/Browsers/PetBrowser.lua b/totalRP3/UI/Browsers/PetBrowser.lua index a1fb96272..c6b02cdec 100644 --- a/totalRP3/UI/Browsers/PetBrowser.lua +++ b/totalRP3/UI/Browsers/PetBrowser.lua @@ -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)