mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-31 04:46:55 +00:00
0.1.146: Karten-ID-Suche auch ausserhalb des Scans, Startdaten Karten-Scan und Item-Werte
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
35ea870ea2
commit
384097e987
@@ -77,6 +77,18 @@ local function MergeExtras(g)
|
||||
FillTable(db.cat.qd, g.extra.qd, function(k, v) return IsId(k) and type(v) == "table" end)
|
||||
if Codex.Catalog then Codex.Catalog.rev = (Codex.Catalog.rev or 0) + 1 end
|
||||
end
|
||||
-- Karten-Scan (Karten, Gebiete, Gebiete je Karte, Trigger, Flugpunkte): nur fehlende Eintraege, eigener Scan geht vor
|
||||
if type(g.extra.scan) == "table" then
|
||||
db.cat = db.cat or {}
|
||||
for _, name in ipairs({ "m", "a", "ma", "t", "x" }) do
|
||||
if type(g.extra.scan[name]) == "table" then
|
||||
db.cat[name] = db.cat[name] or {}
|
||||
FillTable(db.cat[name], g.extra.scan[name], function(k, v)
|
||||
return type(k) == "number" and (type(v) == "string" or type(v) == "table")
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
db.foreverRev = g.rev
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user