Skip to content

Commit 1042c9b

Browse files
committed
Updated pachnotes and fixed a score calculation error.
1 parent 2ef72dc commit 1042c9b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Core/Localization/Localization.enUS.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ L.FORTIFIED = "Fortified"
2929
L.ERRORMESSAGES = "Error messages are"
3030
L.ERRORMESSAGESNOTIFY = "Notify: Error messages are enabled."
3131
L.DEBUGMESSAGES = "Debug messages are"
32-
L.DEBUGMESSAGESNOTIFY = "Notify: Debug messages are disabled."
32+
L.DEBUGMESSAGESNOTIFY = "Notify: Debug messages are enabled."
3333
L.COMMANDERROR1 = "Invalid command"
3434
L.COMMANDERROR2 = "Enter"
3535
L.COMMANDERROR3 = "for commands"

KeyMaster.lua

+2-4
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,12 @@ local function OnEvent_AddonLoaded(self, event, name, ...)
151151
KeyMaster:Print(KeyMasterLocals.WELCOMEMESSAGE, "|cff"..hexColor..UnitName("player").."|r"..KeyMasterLocals.EXCLIMATIONPOINT)
152152

153153
local hexColor = select(4, Theme:GetThemeColor("color_ERRORMSG"))
154-
local status = KeyMaster_DB.addonConfig.showErrors
155-
if (status) then
154+
if (KeyMaster_DB.addonConfig.showErrors == true) then
156155
KeyMaster:Print("|cff"..hexColor.. KeyMasterLocals.ERRORMESSAGESNOTIFY .. "|r")
157156
end
158157

159158
local hexColor = select(4, Theme:GetThemeColor("color_DEBUGMSG"))
160-
status = KeyMaster_DB.addonConfig.showDebugging
161-
if (status) then
159+
if (KeyMaster_DB.addonConfig.showDebugging == true) then
162160
KeyMaster:Print("|cff"..hexColor.. KeyMasterLocals.DEBUGMESSAGESNOTIFY .. "|r")
163161
end
164162
end

Libs/Internal/DungeonTools.lua

+5
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ end
271271
function DungeonTools:CalculateRating(dungeonID, keyLevel, runTime)
272272
-- ((totaltime - runTime)/(totaltime * maxModifier)) * 5 = bonusScore
273273
-- Subtract 5 if overtime
274+
275+
if (keyLevel < 2) then
276+
return 0
277+
end
278+
274279
if currentSeasonMaps == nil then
275280
currentSeasonMaps = DungeonTools:GetCurrentSeasonMaps()
276281
end

PatchNotes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PATCH NOTES:
55
--------------------------------------------------
66
Key Master Beta release v0.0.94-beta
77
--------------------------------------------------
8+
!! This patch IS NOT backwards compatible! !!
89
- Fixed Spelling mistakes on information panel
910
- Fixed key highlights when you have two of the same key at different levels
1011
- Fixed score gained when having two keys of the same dungeon and the lower is processed after the higher

0 commit comments

Comments
 (0)