Skip to content

Commit

Permalink
v1.6.0 keystone updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Serkan Yazıcıoğlu committed Sep 26, 2024
1 parent e05d9b0 commit 3cc98c1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
42 changes: 24 additions & 18 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1982,30 +1982,35 @@ function Core:SetRosterInfo()
officerNote = officernote
};

if (getGowGameVersionId() == 1) then
if (getGowGameVersionId() == 1 and C_MythicPlus.IsMythicPlusActive()) then
local keystoneLevel = nil;
local keystoneMapId = nil;

if (C_AddOns.IsAddOnLoaded("AstralKeys") and AstralKeys) then
if (level >= _G['AstralEngine'].EXPANSION_LEVEL) then
keystoneLevel = _G['AstralEngine'].GetCharacterKeyLevel(name);
keystoneMapId = _G['AstralEngine'].GetCharacterMapID(name);
if (name == GetCurrentCharacterUniqueKey()) then
keystoneLevel = C_MythicPlus.GetOwnedKeystoneLevel();
keystoneMapId = C_MythicPlus.GetOwnedKeystoneMapID();
else
if (C_AddOns.IsAddOnLoaded("AstralKeys") and AstralKeys) then
if (level >= _G['AstralEngine'].EXPANSION_LEVEL) then
keystoneLevel = _G['AstralEngine'].GetCharacterKeyLevel(name);
keystoneMapId = _G['AstralEngine'].GetCharacterMapID(name);
end
end
end

if (openRaidLib and keystoneData) then
if (keystoneData) then
for unitName, keystoneInfo in pairs(keystoneData) do
if (keystoneInfo.level > 0) then
local unitNameToCheck = unitName;
if (openRaidLib and keystoneData) then
if (keystoneData) then
for unitName, keystoneInfo in pairs(keystoneData) do
if (keystoneInfo.level > 0) then
local unitNameToCheck = unitName;

if (not string.match(unitNameToCheck, "-")) then
unitNameToCheck = unitNameToCheck .. "-" .. GetNormalizedRealmName();
end
if (not string.match(unitNameToCheck, "-")) then
unitNameToCheck = unitNameToCheck .. "-" .. GetNormalizedRealmName();
end

if (unitNameToCheck == name) then
keystoneLevel = keystoneInfo.level;
keystoneMapId = keystoneInfo.challengeMapID;
if (unitNameToCheck == name) then
keystoneLevel = keystoneInfo.level;
keystoneMapId = keystoneInfo.challengeMapID;
end
end
end
end
Expand All @@ -2015,7 +2020,8 @@ function Core:SetRosterInfo()
if (keystoneLevel and keystoneMapId) then
GOW.DB.profile.guilds[guildKey].keystones[name] = {
keystoneLevel = keystoneLevel,
keystoneMapId = keystoneMapId
keystoneMapId = keystoneMapId,
date = GetServerTime()
};

anyKeystoneFound = true;
Expand Down
2 changes: 1 addition & 1 deletion GuildsOfWoW-Cata.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Guilds of WoW guild herald for Classic Progression servers
## X-Website: https://guildsofwow.com
## Author: Nhea
## Version: 1.5.7
## Version: 1.6.0
## SavedVariables: GoWDB
## IconTexture: Interface\Icons\vas_guildfactionchange

Expand Down
2 changes: 1 addition & 1 deletion GuildsOfWoW-Classic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Guilds of WoW guild herald for Classic Era servers
## X-Website: https://guildsofwow.com
## Author: Nhea
## Version: 1.5.7
## Version: 1.6.0
## SavedVariables: GoWDB

embed.xml
Expand Down
2 changes: 1 addition & 1 deletion GuildsOfWoW.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Guilds of WoW guild herald for retail World of Warcraft
## X-Website: https://guildsofwow.com
## Author: Nhea
## Version: 1.5.7
## Version: 1.6.0
## SavedVariables: GoWDB
## OptionalDeps: AstralKeys
## AddonCompartmentFunc: GuildsOfWow_OnAddonButtonClick
Expand Down

0 comments on commit 3cc98c1

Please sign in to comment.