Pet modifier

This commit is contained in:
Gonçalo Correia 2026-05-09 02:11:24 +01:00
parent 0d9ec1913d
commit ed1e696eb5
4 changed files with 67 additions and 6 deletions

View file

@ -7,6 +7,7 @@ AltSystem.State = {
selectedItemIndex = 1, -- 1 = No item
selectedDefenseIndex = 1, -- 1 = Base armor
shieldEnabled = false,
petSummonEnabled = false,
announceEnabled = false,
announceChannelIndex = 1, -- 1 = Emote, 2 = Party, 3 = Raid, 4 = Guild
}
@ -39,6 +40,9 @@ function AltSystem:Init()
if AltSystemDB.announceChannelIndex then
AltSystem.State.announceChannelIndex = AltSystemDB.announceChannelIndex
end
if AltSystemDB.petSummonEnabled ~= nil then
AltSystem.State.petSummonEnabled = AltSystemDB.petSummonEnabled
end
-- Register slash command /altsystem
SLASH_ALTSYSTEM1 = "/altsystem"
@ -53,6 +57,7 @@ function AltSystem:Init()
AltSystemDB = AltSystemDB or {}
AltSystemDB.announceEnabled = AltSystem.State.announceEnabled
AltSystemDB.announceChannelIndex = AltSystem.State.announceChannelIndex
AltSystemDB.petSummonEnabled = AltSystem.State.petSummonEnabled
end)
print("|cff00ccffAltSystem|r loaded. Type /altsystem to open.")