This commit is contained in:
tercio
2014-04-16 22:17:50 -03:00
parent a569c7fbc4
commit 5c621d6c20
35 changed files with 2473 additions and 789 deletions
+15 -1
View File
@@ -13,6 +13,10 @@ end
function _detalhes:SaveDataOnLogout()
if (true) then
return
end
if (_detalhes.wipe_full_config) then
_detalhes_global = nil
_detalhes_database = nil
@@ -417,18 +421,28 @@ function _detalhes:WipeConfig()
end
local is_exception = {
["nick_tag_cache"] = true
}
function _detalhes:SaveConfig()
--> nicktag cache
--_detalhes.copy_nick_tag = table_deepcopy (_detalhes_database.nick_tag_cache)
--> cleanup
_detalhes:PrepareTablesForSave()
_detalhes_database.tabela_instancias = _detalhes.tabela_instancias
_detalhes_database.tabela_historico = _detalhes.tabela_historico
--> buffs
_detalhes.Buffs:SaveBuffs()
--> salva o container do personagem
for key, value in pairs (_detalhes.default_player_data) do
_detalhes_database [key] = _detalhes [key]
if (not is_exception [key]) then
_detalhes_database [key] = _detalhes [key]
end
end
--> salva o container das globais