Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
v2.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
onechiporenko committed May 3, 2023
1 parent e36c035 commit e46366d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
### v.2.30.0
### v2.31.0

* [#119](https://github.com/onechiporenko/my-dungeons-book/issues/119) Fix `lastChallengeId` lua-error
* Bump game version to 100100

### v2.30.0

* Bump game version to 100007

Expand Down
2 changes: 1 addition & 1 deletion Challenge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function MyDungeonsBook:GetLastChallengeId()
id = challenge.id;
end
end
return id;
return id or "";
end

function MyDungeonsBook:CleanupOlderChallenges()
Expand Down
6 changes: 3 additions & 3 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ function MyDungeonsBook:CHALLENGE_MODE_COMPLETED()
self.db.char.activeChallengeId = nil;
end, 5);
-- must be last!
if (self.db.profile.performance.compress) then
--[[if (self.db.profile.performance.compress) then
for k, _ in pairs(self.db.char.challenges[id].mechanics) do
self.db.char.challenges[id].mechanics[k] = self:Compress(self.db.char.challenges[id].mechanics[k]);
end
end
end]]
end
self:UnregisterEvent("PLAYER_REGEN_DISABLED");
self:UnregisterEvent("PLAYER_REGEN_ENABLED");
Expand Down Expand Up @@ -550,7 +550,7 @@ function MyDungeonsBook:ENCOUNTER_LOOT_RECEIVED(_, encounterId, itemId, itemLink
local lastChallengeId = self:GetLastChallengeId();
local challenge = self:Challenge_GetById(lastChallengeId);
if (not challenge) then
self:DebugPrint(string.format("Challenge %s does not exist", lastChallengeId));
self:DebugPrint(string.format("Challenge '%s' does not exist", lastChallengeId));
return;
end
if (not challenge.challengeInfo or not challenge.challengeInfo.endTime) then
Expand Down
4 changes: 2 additions & 2 deletions MyDungeonsBook.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Title: MyDungeonsBook
## Notes: Addon to collect and store specific information about your myth+ challenges.
## Version: 2.30.0
## Version: 2.31.0
## Author: GelioS
## Interface: 100007
## Interface: 100100
## OptionalDeps: LibStub, CallbackHandler-1.0, Ace3, LibCompress, LibGroupInSpecT-1.1
## SavedVariables: MyDungeonsBookDB
## SavedVariablesPerCharacter: MyDungeonsBookData
Expand Down

0 comments on commit e46366d

Please sign in to comment.