Files
coa-details/plugins/Details_DataStorage/Details_DataStorage.lua
T
Tercio 44070b38a5 - 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.
2015-03-16 00:56:58 -03:00

38 lines
885 B
Lua

DETAILS_STORAGE_VERSION = 3
function _detalhes:CreateStorageDB()
DetailsDataStorage = {
VERSION = DETAILS_STORAGE_VERSION,
[14] = {}, --normal mode
[15] = {}, --heroic mode
[16] = {}, --mythic mode
}
return DetailsDataStorage
end
local f = CreateFrame ("frame", nil, UIParent)
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 < 3) then
table.wipe (DetailsDataStorage)
DetailsDataStorage = _detalhes:CreateStorageDB()
end
end
print ("|cFFFFFF00Details! Storage|r: loaded!")
DETAILS_STORAGE_LOADED = true
end
end)