Skip to content

Commit

Permalink
8.1.5 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 13, 2019
1 parent 6f279c0 commit 3e57bed
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion ElvUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function AS:REFlex()
AS:SkinTab(_G["REFlexFrameTab"..i])
end
_G.REFlexFrame_Title:SetPoint("TOP", 0, -10)
_G.REFlexFrame_HKBar:SetPoint("BOTTOM", 0, 19)
_G.REFlexFrame_HKBar:SetPoint("BOTTOM", 0, 18)
end

AS:RegisterSkin("REFlex", AS.REFlex)
12 changes: 3 additions & 9 deletions REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local RegisterAddonMessagePrefix = _G.C_ChatInfo.RegisterAddonMessagePrefix
local SendAddonMessage = _G.C_ChatInfo.SendAddonMessage
local ElvUI = _G.ElvUI

RE.Version = 264
RE.Version = 265
RE.LastSquash = 1531828800
RE.FoundNewVersion = false

Expand Down Expand Up @@ -905,14 +905,8 @@ function RE:PVPEnd()
RE.MatchData.isBrawl = IsInBrawl()
RE.MatchData.Version = RE.Version

if RE.MatchData.Map == 968 then
RE.MatchData.Map = 566
end
if RE.MatchData.Map == 1035 then
RE.MatchData.Map = 998
end
if RE.MatchData.Map == 1681 then
RE.MatchData.Map = 529
if RE.MapIDRemap[RE.MatchData.Map] then
RE.MatchData.Map = RE.MapIDRemap[RE.MatchData.Map]
end

if (IsRatedBattleground() and not IsWargame()) or (RE.MatchData.isArena and not IsArenaSkirmish()) then
Expand Down
2 changes: 1 addition & 1 deletion REFlex.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 80100
## Title: |cFF74D06CRE|rFlex
## Notes: Collect statistics of played arena matches and battlegrounds.
## Version: 2.6.4
## Version: 2.6.5
## Author: AcidWeb
## SavedVariablesPerCharacter: REFlexSettings, REFlexDatabase, REFlexHonorDatabase
## X-Website: https://www.curseforge.com/wow/addons/reflex-battleground-historian
Expand Down
31 changes: 19 additions & 12 deletions REFlexStructures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ RE.DefaultConfig = {

RE.MapList = {
[30] = GetRealZoneText(30),
[529] = GetRealZoneText(529),
[2107] = GetRealZoneText(2107),
[1691] = GetRealZoneText(1691),
[1105] = GetRealZoneText(1105),
[566] = GetRealZoneText(566),
[968] = GetRealZoneText(566),
[628] = GetRealZoneText(628),
[727] = GetRealZoneText(727),
[607] = GetRealZoneText(607),
[998] = GetRealZoneText(998),
[1035] = GetRealZoneText(998),
[1035] = GetRealZoneText(1035),
[761] = GetRealZoneText(761),
[726] = GetRealZoneText(726),
[489] = GetRealZoneText(489),
[2106] = GetRealZoneText(2106),
[1280] = GetRealZoneText(1280),
[1803] = GetRealZoneText(1803),
[2118] = GetRealZoneText(2118),
[1552] = RE:GetShortMapName(GetRealZoneText(1552)),
[1504] = RE:GetShortMapName(GetRealZoneText(1504)),
[562] = RE:GetShortMapName(GetRealZoneText(1672)),
Expand All @@ -55,7 +55,7 @@ RE.MapList = {
RE.MapListLongBG = {
[1] = ALL,
[30] = GetRealZoneText(30),
[529] = GetRealZoneText(529),
[2107] = GetRealZoneText(2107),
[1691] = GetRealZoneText(1691),
[1105] = GetRealZoneText(1105),
[566] = GetRealZoneText(566),
Expand All @@ -64,10 +64,11 @@ RE.MapListLongBG = {
[727] = GetRealZoneText(727),
[607] = GetRealZoneText(607),
[1280] = GetRealZoneText(1280),
[998] = GetRealZoneText(998),
[1035] = GetRealZoneText(1035),
[761] = GetRealZoneText(761),
[726] = GetRealZoneText(726),
[489] = GetRealZoneText(489)
[2106] = GetRealZoneText(2106),
[2118] = GetRealZoneText(2118),
}

RE.MapListLongArena = {
Expand All @@ -85,21 +86,21 @@ RE.MapListLongArena = {
}

RE.MapListLongOrderBG = {
1, 30, 529, 1691, 1105, 566, 628, 1803, 727, 607, 1280, 998, 761, 726, 489
1, 30, 2118, 2107, 1691, 1105, 566, 628, 1803, 727, 607, 1280, 1035, 761, 726, 2106
}

RE.MapListLongOrderArena = {
1, 1552, 1504, 1672, 617, 1825, 1911, 1505, 572, 1134, 980
}

RE.MapListStat = {
[489] = {true, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture", "Interface\\WorldStateFrame\\ColumnIcon-FlagReturn"},
[2106] = {true, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture", "Interface\\WorldStateFrame\\ColumnIcon-FlagReturn"},
[726] = {true, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture", "Interface\\WorldStateFrame\\ColumnIcon-FlagReturn"},
[529] = {true, "Interface\\WorldStateFrame\\ColumnIcon-TowerCapture", "Interface\\WorldStateFrame\\ColumnIcon-TowerDefend"},
[2107] = {true, "Interface\\WorldStateFrame\\ColumnIcon-TowerCapture", "Interface\\WorldStateFrame\\ColumnIcon-TowerDefend"},
[566] = {false, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture2"},
[567] = {true, "Interface\\WorldStateFrame\\ColumnIcon-TowerCapture", "Interface\\WorldStateFrame\\ColumnIcon-TowerDefend", "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture2"},
[761] = {true, "Interface\\WorldStateFrame\\ColumnIcon-TowerCapture", "Interface\\WorldStateFrame\\ColumnIcon-TowerDefend"},
[998] = {false, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture2", "Interface\\GroupFrame\\UI-Group-MasterLooter"},
[1035] = {false, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture2", "Interface\\GroupFrame\\UI-Group-MasterLooter"},
[1105] = {true, "Interface\\WorldStateFrame\\ColumnIcon-FlagCapture", "Interface\\WorldStateFrame\\ColumnIcon-FlagReturn", "Interface\\WorldStateFrame\\ColumnIcon-TowerCapture", "Interface\\WorldStateFrame\\ColumnIcon-TowerDefend"},
[727] = {false, "Interface\\MINIMAP\\Vehicle-SilvershardMines-MineCart"},
[30] = {true, "Interface\\WorldStateFrame\\ColumnIcon-GraveyardCapture", "Interface\\WorldStateFrame\\ColumnIcon-GraveyardDefend", "Interface\\WorldStateFrame\\ColumnIcon-TowerCapture", "Interface\\WorldStateFrame\\ColumnIcon-TowerDefend"},
Expand Down Expand Up @@ -129,7 +130,8 @@ RE.RaceIcons = {
["Lightforged Draenei"] = {0.5, 0.625, 0, 0.25},
["Dark Iron Dwarf"] = {0.125, 0.25, 0, 0.25},
["Mag'har Orc"] = {0.375, 0.5, 0.25, 0.5},
["Zandalari Troll"] = {0.25, 0.375, 0.25, 0.5}
["Zandalari Troll"] = {0.25, 0.375, 0.25, 0.5},
["Kul Tiran"] = {0, 0.125, 0, 0.25}
}

RE.BracketNames = {
Expand All @@ -139,6 +141,11 @@ RE.BracketNames = {
BATTLEGROUND_10V10
}

RE.MapIDRemap = {
[968] = 566,
[1681] = 2107
}

RE.Roles = {}
for classID=1, MAX_CLASSES do
local _, classTag = GetClassInfo(classID)
Expand Down
19 changes: 15 additions & 4 deletions REFlexUpdater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ end

function RE:UpdateDatabase()
for i=1, #RE.Database do
if RE.Database[i].Version < 260 then
if RE.Database[i].Version < 265 then
if RE.Database[i].Version < 224 then
if RE.Database[i].Map == 1681 then
RE.Database[i].Map = 529
RE.Database[i].Map = 2107
RE.Database[i].isBrawl = true
else
RE.Database[i].isBrawl = false
Expand Down Expand Up @@ -73,8 +73,19 @@ function RE:UpdateDatabase()
RE.Database[i].Version = 235
end

RE.Database[i].Time = RE.Database[i].Time - (RE.PlayerTimezone * 3600)
RE.Database[i].Version = 260
if RE.Database[i].Version < 260 then
RE.Database[i].Time = RE.Database[i].Time - (RE.PlayerTimezone * 3600)
RE.Database[i].Version = 260
end

if RE.Database[i].Map == 489 then
RE.Database[i].Map = 2106
elseif RE.Database[i].Map == 529 then
RE.Database[i].Map = 2107
elseif RE.Database[i].Map == 998 then
RE.Database[i].Map = 1035
end
RE.Database[i].Version = 265
end
end
end
Expand Down

0 comments on commit 3e57bed

Please sign in to comment.