Skip to content

Commit b1b89cd

Browse files
authored
Merge pull request #76 from Puresyn/development
Updated to 1.3.7 from Dev
2 parents b28951f + 7594108 commit b1b89cd

8 files changed

+28
-8
lines changed

Core/Localization/Languages.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
<!--<Script file='Core\Localization\Localization.ruRU.lua'/> -->
1010
<Script file='Core\Localization\Localization.zhTW.lua'/>
1111
<Script file='Core\Localization\Localization.koKR.lua'/>
12-
<!--<Script file='Core\Localization\Localization.zhCN.lua'/> -->
12+
<Script file='Core\Localization\Localization.zhCN.lua'/>
1313
</Ui>

Core/UI/PartyFrameMapping.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function PartyFrameMapping:UpdateUnitFrameData(unitId, playerData)
208208
local mapTable = DungeonTools:GetCurrentSeasonMaps()
209209
if KeyMaster:GetTableLength(playerData.DungeonRuns) ~= 0 then
210210
for mapid, v in pairs(mapTable) do
211-
local chestCount = DungeonTools:CalculateChest(mapid, playerData.DungeonRuns[mapid]["DungeonData"].DurationSec)
211+
local chestCount = DungeonTools:CalculateChest(mapid, playerData.ownedKeyLevel, playerData.DungeonRuns[mapid]["DungeonData"].DurationSec)
212212
local keyLevel = "0"
213213
if playerData.DungeonRuns[mapid]["DungeonData"].Level ~= nil then
214214
keyLevel = chestCount .. playerData.DungeonRuns[mapid]["DungeonData"].Level

Core/UI/PlayerFrameMapping.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function PlayerFrameMapping:RefreshData(fetchNew)
153153
playerMapDataFrame.tyrannicalLevel:SetText(tyrannicalLevel or defaultString)
154154

155155
-- Dungeon Bonus Time
156-
local tyrannicalBonusTime = DungeonTools:CalculateChest(mapId, playerData.DungeonRuns[mapId]["DungeonData"].DurationSec)
156+
local tyrannicalBonusTime = DungeonTools:CalculateChest(mapId, playerData.DungeonRuns[mapId]["DungeonData"].Level, playerData.DungeonRuns[mapId]["DungeonData"].DurationSec)
157157
playerMapDataFrame.tyrannicalBonus:SetText(tyrannicalBonusTime)
158158

159159
-- Dungeon Run Time

Core/UI/WhatsNew.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ local function setWhatsNewContent(parent)
3333
<br/>
3434
<h2>|cff]]..h2Color..[[Updates:|r</h2>
3535
<br/>
36-
<p>]]..textBullet..[[Updated to WoW Interface version 11.0.5</p>
36+
<p>]]..textBullet..[[None</p>
3737
<br/>
3838
<br/>
3939
<h2>|cff]]..h2Color..[[Fixes:|r</h2>
4040
<br/>
41-
<p>]]..textBullet..[[None</p>
41+
<p>]]..textBullet..[[Fixed an error with Simplified Chinese that stoped KM from loading.</p>
42+
<p>]]..textBullet..[[Fixed miscalculations with IO and chest levels (+1, +2, +3) for dungeon runs due to addition of 90s to level 7 affix.</p>
4243
<br/>
4344
<br/>
4445
<h2>|cff]]..h2Color..[[Known Bugs/Issues:|r</h2>

KeyMaster.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ local PartyFrame = KeyMaster.PartyFrame
1818
KM_ADDON_NAME = KeyMasterLocals.ADDONNAME
1919
KM_AUTOVERSION = C_AddOns.GetAddOnMetadata("KeyMaster", "Version")
2020

21-
KM_VERSION_STATUS = KeyMasterLocals.BUILDRELEASE -- BUILDALPHA BUILDBETA BUILDRELEASE - for display and update notification purposes
21+
KM_VERSION_STATUS = KeyMasterLocals.BUILDBETA -- BUILDALPHA BUILDBETA BUILDRELEASE - for display and update notification purposes
2222

2323
--------------------------------
2424
-- Slash Commands and command menu

KeyMaster.toc

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

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

Libs/Internal/DungeonTools.lua

+7-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ end
411411
---@param dungeonID integer - the id of the dungeon
412412
---@param timeCompleted integer - the runs time in seconds
413413
---@return string - string of the performance i.e. + or +++
414-
function DungeonTools:CalculateChest(dungeonID, timeCompleted)
414+
function DungeonTools:CalculateChest(dungeonID, keyLevel, timeCompleted)
415415

416416
local seasonVars = getRatingCalcValues()
417417
if (not seasonVars) then
@@ -424,6 +424,9 @@ function DungeonTools:CalculateChest(dungeonID, timeCompleted)
424424
currentSeasonMaps = DungeonTools:GetCurrentSeasonMaps()
425425
end
426426
local timeLimit = currentSeasonMaps[dungeonID].timeLimit
427+
if keyLevel >= seasonVars.thirdAffixLevel then
428+
timeLimit = timeLimit + 90
429+
end
427430
if(timeCompleted <= (timeLimit * seasonVars.threeChestSpeed)) then return "+++" end
428431
if(timeCompleted <= (timeLimit * seasonVars.twoChestSpeed)) then return "++" end
429432
if(timeCompleted <= timeLimit) then return "+" end
@@ -525,6 +528,9 @@ function DungeonTools:CalculateRating(dungeonID, keyLevel, runTime)
525528
end
526529
local bonusRating = 0
527530
local dungeonTimeLimit = currentSeasonMaps[dungeonID].timeLimit
531+
if keyLevel >= seasonVars.thirdAffixLevel then
532+
dungeonTimeLimit = dungeonTimeLimit + 90
533+
end
528534
-- Runs over time by 40% are a 0 score.
529535
if(runTime > (dungeonTimeLimit + (dungeonTimeLimit * maxModifier))) then
530536
return 0

PatchNotes.txt

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

44
PATCH NOTES:
5+
--------------------------------------------------
6+
Key Master v1.3.7
7+
--------------------------------------------------
8+
Updates:
9+
- None
10+
11+
Fixes:
12+
- Fixed an error with Simplified Chinese that stoped KM from loading.
13+
- Fixed miscalculations with IO and chest levels (+1, +2, +3) for dungeon runs due to addition of 90s to level 7 affix.
14+
15+
Known Bugs/Issues:
16+
- A player's vault display may not update immediately. Changing tabs should correct the display if inaccurate.
17+
518
--------------------------------------------------
619
Key Master v1.3.6
720
--------------------------------------------------

0 commit comments

Comments
 (0)