0.1.149: Lernplan-Symbole/Tooltips, Item-Tooltips, Nachnahme-Anhang (1.12-Form), Brett eigenes Fenster, ClassicAPI-Pruefung, Start-Itemkatalog

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-10-28 12:58:11 +01:00
co-authored by Claude Sonnet 5.5
parent 220aa31d44
commit 357826045c
5 changed files with 40 additions and 11 deletions
+7 -1
View File
@@ -663,6 +663,11 @@ function Roles:ScanTrainer()
rec.sn, rec.sr = sn, sr and math.floor(sr) or nil
end
end
local ic = TrainerCall("GetTrainerServiceIcon", i)
ic = ic and Util.Clean(ic[1])
if (type(ic) == "string" and ic ~= "") or type(ic) == "number" then
rec.ic = ic
end
local cost = FirstNumber(TrainerCall("GetTrainerServiceCost", i), "moneyCost")
if cost and not seen[key .. ":" .. cost] then
seen[key .. ":" .. cost] = true
@@ -1093,7 +1098,7 @@ BuildLearnPlan = function(token)
local skey = lv .. "\1" .. (r.sp and ("s" .. r.sp) or key)
local sp = seen[skey]
if not sp then
sp = { nm = r.nm, sp = r.sp, rk = r.rk, lv = lv, pr = {}, trainers = {} }
sp = { nm = r.nm, sp = r.sp, rk = r.rk, lv = lv, ic = r.ic, pr = {}, trainers = {} }
seen[skey] = sp
local g = levels[lv]
if not g then
@@ -1105,6 +1110,7 @@ BuildLearnPlan = function(token)
end
sp.rk = sp.rk or r.rk
sp.sp = sp.sp or r.sp
sp.ic = sp.ic or r.ic
for p, n in pairs(r.pr or {}) do sp.pr[p] = (sp.pr[p] or 0) + n end
local g = levels[lv]
if IsPetTrainer(u) then sp.pet = true end