0.1.223: Start-Wegenetz aus Karten-Rohdaten (A* auf Raster), Questorte als Rueckfall

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
Lacustat
2026-11-01 14:07:16 +01:00
co-authored by Claude Sonnet 5.5
parent a69ac8131e
commit c045446264
6 changed files with 7924 additions and 3 deletions
+12 -1
View File
@@ -4039,8 +4039,19 @@ function Codex.CollectPoints(spec)
end
elseif kind == "quests" then
local q = Codex.V().quests[id]
local sg, sturn
if Codex.QuestSpot then sg, sturn = Codex.QuestSpot(id) end
if not q and (sg or sturn) then
for _, def in ipairs({ { sg, L.CODEX_TAG_GIVE, "give" }, { sturn, L.CODEX_TAG_TURN, "turn" } }) do
local ref = def[1]
if ref then
points[#points + 1] = { m = ref.m, x = ref.x, y = ref.y, n = 4, pin = true, tag = def[3],
name = string.format(def[2], ref.n or "?") }
end
end
end
if q then
for _, def in ipairs({ { q.give, L.CODEX_TAG_GIVE, "give" }, { q.turn, L.CODEX_TAG_TURN, "turn" } }) do
for _, def in ipairs({ { q.give or sg, L.CODEX_TAG_GIVE, "give" }, { q.turn or sturn, L.CODEX_TAG_TURN, "turn" } }) do
local ref = def[1]
if ref and ref.m and ref.x and ref.y then
points[#points + 1] = { m = ref.m, x = ref.x, y = ref.y, n = 4, pin = true, tag = def[3],