Загрузить файлы в «/»

This commit is contained in:
Ade
2026-10-17 20:51:59 +00:00
parent d3dab32ef8
commit 4af9e66734
5 changed files with 37 additions and 9 deletions
+12 -4
View File
@@ -32,6 +32,7 @@ end
local function StoreRecipes(prof, recs, rank, maxrank)
if not AA.me or not prof or prof == "" or table.getn(recs) == 0 then return end
AA.me.prof = AA.me.prof or {}
if AA.me.profGone then AA.me.profGone[prof] = nil end
local p = AA.me.prof[prof]
if not p then
p = {}
@@ -379,6 +380,7 @@ local function ScanSkills()
if not header and name and PROFN[name] and not AA.BadProf(name, maxRank)
and not (name == "Survival" and section == "Class Skills") then
seen[name] = true
if AA.me.profGone then AA.me.profGone[name] = nil end
local p = AA.me.prof[name]
if not p then
p = {}
@@ -392,10 +394,16 @@ local function ScanSkills()
end
end
end
for name, p in pairs(AA.me.prof) do
if not seen[name] and PROFN[name] then
AA.me.prof[name] = nil -- profession was unlearned
changed = true
-- a profession that is gone from a complete skill list was unlearned: remember when, so that
-- the shared file / chat cannot bring the old entry back
if n >= 5 and GetTime() - AA.enterTime >= 15 then
for name, p in pairs(AA.me.prof) do
if not seen[name] and PROFN[name] then
AA.me.prof[name] = nil
AA.me.profGone = AA.me.profGone or {}
AA.me.profGone[name] = time()
changed = true
end
end
end
return changed