mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-30 22:57:00 +00:00
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:
co-authored by
Claude Sonnet 5.5
parent
220aa31d44
commit
357826045c
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user