- Boss segments now need to have at least 30 seconds to be added on the overall data.
- When the segment limit is reach, segments with less combat time will be erased instead of the olders. - Added item level tracker. - Details Storage now stores the item level of the character as well and only guild runs. - Fixed window positioning when changing from Solo mode to Group mode.
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
|
||||
DETAILS_STORAGE_VERSION = 2
|
||||
DETAILS_STORAGE_VERSION = 3
|
||||
|
||||
function _detalhes:CreateStorageDB()
|
||||
DetailsDataStorage = {VERSION = DETAILS_STORAGE_VERSION, RAID_STORAGE = {}, SELF_STORAGE = {}}
|
||||
DetailsDataStorage = {
|
||||
VERSION = DETAILS_STORAGE_VERSION,
|
||||
[14] = {}, --normal mode
|
||||
[15] = {}, --heroic mode
|
||||
[16] = {}, --mythic mode
|
||||
}
|
||||
return DetailsDataStorage
|
||||
end
|
||||
|
||||
@@ -11,17 +16,22 @@ f:Hide()
|
||||
f:RegisterEvent ("ADDON_LOADED")
|
||||
|
||||
f:SetScript ("OnEvent", function (self, event, addonName)
|
||||
|
||||
if (addonName == "Details_DataStorage") then
|
||||
|
||||
DetailsDataStorage = DetailsDataStorage or _detalhes:CreateStorageDB()
|
||||
|
||||
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
||||
--> do revisions
|
||||
if (DetailsDataStorage.VERSION == 1) then
|
||||
DetailsDataStorage.SELF_STORAGE = {}
|
||||
DetailsDataStorage.VERSION = 2
|
||||
if (DetailsDataStorage.VERSION < 3) then
|
||||
table.wipe (DetailsDataStorage)
|
||||
DetailsDataStorage = _detalhes:CreateStorageDB()
|
||||
end
|
||||
end
|
||||
|
||||
print ("|cFFFFFF00Details! Storage|r: loaded!")
|
||||
DETAILS_STORAGE_LOADED = true
|
||||
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user