mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-30 21:37:00 +00:00
0.1.143: fremde Wege blau, Zeichen-Diagnose
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
78b0e633a6
commit
eae43ba1d1
+13
-1
@@ -27,7 +27,7 @@ local PROBE = 100 -- Yards Abstand der Messpunkte fuer die Umrechnung
|
||||
local COLORS = {
|
||||
w = { 0.30, 0.90, 0.40 }, -- Weg
|
||||
f = { 0.75, 0.45, 1.00 }, -- Flugroute
|
||||
r = { 1.00, 0.60, 0.15 }, -- fremder Weg (empfangen oder aus Startdaten)
|
||||
r = { 0.10, 0.35, 1.00 }, -- fremder Weg (empfangen oder aus Startdaten): Blau, auf dem Pergament gut sichtbar
|
||||
d = { 1.00, 0.25, 0.20 }, -- Fall
|
||||
g = { 1.00, 0.85, 0.10 }, -- Luecke
|
||||
lw = { 0.20, 0.80, 1.00 }, -- Grenzuebergang
|
||||
@@ -486,6 +486,7 @@ function PM.Refresh()
|
||||
label:SetText(string.format(L.CODEX_PATHMAP_LABEL, res.counts.w, res.counts.d, res.counts.x, res.counts.g))
|
||||
local scale, layerScale = Scale(canvas), Scale(layer)
|
||||
local ratio = scale / layerScale
|
||||
PM.drawInfo = { w = width, h = height, scale = scale, layerScale = layerScale, total = #res.dots, drawn = 0, shown = layer:IsShown() and true or false }
|
||||
local n = 0
|
||||
for _, d in ipairs(res.dots) do
|
||||
local show
|
||||
@@ -499,6 +500,7 @@ function PM.Refresh()
|
||||
if show then
|
||||
n = n + 1
|
||||
if n > MAX_DOTS then break end
|
||||
PM.drawInfo.drawn = n
|
||||
local t = Dot(n)
|
||||
local px = (d.w == 1 and 3 or (d.w == 4 and 4 or d.w == 2 and 8 or (d.kind == "s" and 14 or 10))) / layerScale
|
||||
local c = COLORS[d.kind] or COLORS.w
|
||||
@@ -578,6 +580,16 @@ function PM.Diag()
|
||||
FW:Print(string.format("Welt %s, Zellen der Welt: %d, gespeicherte Achsen-Vertauschung: %s, benutzt: %s",
|
||||
tostring(res.world), res.ncells or 0, tostring(Codex.db.settings.pathSwap), tostring(res.swap)))
|
||||
FW:Print(string.format("Umrechnung: %s (cells = aus Zellen, map = aus Kartenmitte, none = keine)", tostring(res.fit)))
|
||||
local di = PM.drawInfo
|
||||
if di then
|
||||
FW:Print(string.format("Zeichnen: Punkte %d, gezeichnet %d, Flaeche %.0fx%.0f, Skalierung %.2f / Ebene %.2f, Ebene sichtbar %s, an: %s",
|
||||
di.total, di.drawn, di.w, di.h, di.scale, di.layerScale, tostring(di.shown), tostring(PM.on)))
|
||||
else
|
||||
FW:Print("Zeichnen: noch nicht gezeichnet (Wegenetz einschalten mit /fwwege)")
|
||||
end
|
||||
local flags = {}
|
||||
for _, k in ipairs({ "w", "r", "f", "d", "g", "s", "x" }) do flags[#flags + 1] = k .. "=" .. (PM.LayerOn(k) and "an" or "AUS") end
|
||||
FW:Print("Ebenen: " .. table.concat(flags, " "))
|
||||
local c = res.counts
|
||||
FW:Print(string.format("Punkte auf dieser Karte: eigene %d, fremde %d, Beute %d, Uebergaenge %d, Luecken %d, Orte %d",
|
||||
c.w or 0, c.r or 0, c.d or 0, c.x or 0, c.g or 0, c.s or 0))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Notes: Learns quests, creatures and drops while you play: who gives and takes a quest, rewards, objectives, drop chances.
|
||||
## Notes-deDE: Lernt beim Spielen Quests, Kreaturen und Beute: wer eine Quest vergibt und annimmt, Belohnungen, Ziele, Drop-Chancen.
|
||||
## Author: Lacustat
|
||||
## Version: 0.1.142
|
||||
## Version: 0.1.143
|
||||
## Dependencies: Freewood-OctoWoW-Core
|
||||
## OptionalDeps: Freewood-OctoWoW-CodexData, Freewood-OctoWoW-ForeverData
|
||||
|
||||
|
||||
Reference in New Issue
Block a user