mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-31 18:56:56 +00:00
0.1.187:
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
f6061b92f2
commit
86df8d52f5
+4
-3
@@ -47,7 +47,7 @@ end
|
||||
|
||||
local function Entry(r)
|
||||
local cost = Codex.ModePrice(r.pr)
|
||||
return { nm = r.nm or "?", sp = r.sp, rk = r.rk or (r.sp and Codex.SpellRank(r.sp)) or nil, cost = cost }
|
||||
return { nm = r.nm or "?", sp = r.sp, rk = r.rk or (r.sp and Codex.SpellRank(r.sp)) or nil, cost = cost, ic = r.ic }
|
||||
end
|
||||
|
||||
-- Fähigkeiten deiner Klasse, die auf dieser Stufe beim Lehrer dazukommen
|
||||
@@ -60,7 +60,7 @@ function Hints.ClassEntries(level)
|
||||
if g then
|
||||
for _, sp in ipairs(g.spells) do
|
||||
if not SpellKnown(sp.sp) then
|
||||
list[#list + 1] = { nm = sp.nm or "?", sp = sp.sp, rk = sp.rk or (sp.sp and Codex.SpellRank(sp.sp)) or nil, cost = sp.cost }
|
||||
list[#list + 1] = { nm = sp.nm or "?", sp = sp.sp, rk = sp.rk or (sp.sp and Codex.SpellRank(sp.sp)) or nil, cost = sp.cost, ic = sp.ic }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -209,7 +209,8 @@ local function Display(h)
|
||||
for i = 1, MAX_ROWS do
|
||||
local row, e = frame.rows[i], h.entries[i]
|
||||
if e and i <= n then
|
||||
local icon = e.sp and Codex.SpellIcon(e.sp) or nil
|
||||
-- Das Symbol vom Lehrer-Fenster (beim Scan gelesen) zuerst; die Zauber-ID taugt auf Vanilla-Clients oft nicht
|
||||
local icon = e.ic or (e.sp and Codex.SpellIcon(e.sp)) or nil
|
||||
row.icon:SetTexture(icon or "Interface\\Icons\\INV_Misc_QuestionMark")
|
||||
row.icon:Show()
|
||||
row.text:SetText(e.nm .. (e.rk and (" |cff9a9aa3(" .. e.rk .. ")|r") or ""))
|
||||
|
||||
Reference in New Issue
Block a user