Skip to content

Commit 74071c0

Browse files
authored
Merge pull request #70 from Puresyn/development
Development
2 parents c7d065d + 394ccfd commit 74071c0

File tree

5 files changed

+29
-40
lines changed

5 files changed

+29
-40
lines changed

Core/CharacterInfo.lua

+15-10
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function CharacterInfo:GetMyCharacterInfo()
127127
local seasonMaps = DungeonTools:GetCurrentSeasonMaps()
128128
for mapid, v in pairs(seasonMaps) do
129129
local keyRun = {}
130-
130+
131131
-- empty data set
132132
local emptyData = {
133133
Rating = 0, -- rating
@@ -141,16 +141,21 @@ function CharacterInfo:GetMyCharacterInfo()
141141
keyRun["bestOverall"] = 0
142142
keyRun["DungeonData"] = emptyData
143143
else
144-
local dungeonDetails = {
145-
["Rating"] = DungeonTools:CalculateRating(mapid, mapScore[1].level, mapScore[1].durationSec),
146-
["Level"] = mapScore[1].level,
147-
["DurationSec"] = mapScore[1].durationSec,
148-
["overTime"] = mapScore[1].overTime
149-
}
150-
keyRun["bestOverall"] = bestOverallScore
151-
keyRun["DungeonData"] = dungeonDetails
144+
for i,v in pairs(mapScore) do
145+
-- Only gets the highest score data, instead of each data set for level 4 affix.
146+
if (v.score == bestOverallScore) then
147+
local dungeonDetails = {
148+
["Rating"] = DungeonTools:CalculateRating(mapid, v.level, v.durationSec),
149+
["Level"] = v.level,
150+
["DurationSec"] = v.durationSec,
151+
["overTime"] = v.overTime
152+
}
153+
keyRun["DungeonData"] = dungeonDetails
154+
end
155+
end
156+
157+
keyRun["bestOverall"] = bestOverallScore
152158
end
153-
154159
myCharacterInfo.DungeonRuns[mapid] = keyRun
155160
end
156161

Core/UI/WhatsNew.lua

+5-27
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,16 @@ local function setWhatsNewContent(parent)
2525
<h1>|cff]]..h1Color..[[News / Updates / Patch Notes|r</h1>
2626
<p>]]..KeyMasterLocals.DISPLAYVERSION..KM_AUTOVERSION.." "..KM_VERSION_STATUS..[[</p>
2727
<br/>
28-
<h2>|cff]]..h2Color..[[1.3.3 HOTFIX:|r</h2>
29-
<p>- Fixed French clients having problems loading Key Master.</p>
30-
<br/>
31-
<br/>
32-
<h2>|cff]]..h2Color..[[1.3.1 HOTFIX:|r</h2>
33-
<p>- Fixed an error for new users of keymaster that would cause Key Master not to load properly.</p>
34-
<br/>
35-
<br/>
36-
<h2>|cff]]..h2Color..[[Fixes (1.3.0):|r</h2>
37-
<p>- Fixed lua error when joining a party with someone that has a newer version of Key Master.</p>
28+
<h2>|cff]]..h2Color..[[Fixes:|r</h2>
29+
<p>- Fixed an issue where the week by week ratings were not properly updating.</p>
3830
<br/>
3931
<br/>
4032
<h2>|cff]]..h2Color..[[Updates:|r</h2>
41-
<p>- Due to drastic API changes - all character data is reset/removed on first load of 1.3.0. Log into each character to refresh.</p>
42-
<br/>
43-
<p>- Changed data structure since mythic plus data no longer is kept by tran/fort criteria.</p>
44-
<br/>
45-
<p>- Remapped UI elements on player and party frame to use newly created data structure.</p>
46-
<br/>
47-
<p>- Added backward compatibility check to 1.2.5 and older to ignore data since structures are different.</p>
48-
<br/>
49-
<p>- Changed player and party data frames to update when an score gained event happens from a mythic plus dungeon.</p>
50-
<br/>
51-
<p>- Updated rating calculator on player frame for the new mythic plus rating system (Big thanks to OMGTOTEM's contribution!).</p>
52-
<br/>
53-
<p>- Temporality changed the player frame to a new layout since tyran/fort is no longer a thing.</p>
54-
<br/>
55-
<p>- Adjusted the "What's New" content for easier readability.</p>
33+
<p>- None</p>
5634
<br/>
5735
<br/>
5836
<h2>|cff]]..h2Color..[[Known Bugs/Issues:|r</h2>
59-
<p>- Party members running an older version of KM may experience LUA errors when grouped with someone running 1.3.0 or greater. Ask them to update!</p>
37+
<p>- Rating calculations are still being verified</p>
6038
<br/>
6139
<br/>
6240
<p>If you experience any other issues, please report them with as much detail as possible in the Key Master Issues GitHub.</p>
@@ -179,4 +157,4 @@ function WhatsNew:Init()
179157
HTMLcontent:SetHeight(HTMLcontent:GetContentHeight()+12)
180158

181159
return noticeFrame
182-
end
160+
end

KeyMaster.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,4 @@ end
298298

299299
local keystoneOpenEvents = CreateFrame("Frame")
300300
keystoneOpenEvents:RegisterEvent("CHALLENGE_MODE_KEYSTONE_RECEPTABLE_OPEN")
301-
keystoneOpenEvents:SetScript("OnEvent", OnEvent_OnKeystoneOpen)
301+
keystoneOpenEvents:SetScript("OnEvent", OnEvent_OnKeystoneOpen)

KeyMaster.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## X-Max-Interface: 110002
33
## X-Min-Interface: 110002
44

5-
## Version: 1.3.3
5+
## Version: 1.3.4
66
## Title: |cffb09c60Key Master|r
77
## Title-ptBR: |cffb09c60Key Master|r
88
## Title-ruRU: |cffb09c60Key Master|r [|cffe6b080Мастер ключей|r]

PatchNotes.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Key Master AddOn for World of Warcraft
22
(c) 2024 – Released under the GNU General Public License
33

4+
PATCH NOTES:
5+
--------------------------------------------------
6+
Key Master v1.3.4
7+
--------------------------------------------------
8+
- Fixed an issue where the week by week ratings were not properly updating.
9+
410
PATCH NOTES:
511
--------------------------------------------------
612
Key Master v1.3.0-3
@@ -350,4 +356,4 @@ Key Master Beta release v0.0.93-beta
350356
--------------------------------------------------
351357
Key Master Beta release v0.0.92-beta
352358
--------------------------------------------------
353-
Initial public beta release.
359+
Initial public beta release.

0 commit comments

Comments
 (0)