Add files via upload
This commit is contained in:
@@ -6,7 +6,7 @@ RelationshipsAttune = RelationshipsAttune or {}
|
||||
local RA = RelationshipsAttune
|
||||
local L = RelationshipsAttune_L
|
||||
|
||||
RA.VERSION = "1.4.2"
|
||||
RA.VERSION = "1.4.3"
|
||||
RA.COMM_PREFIX = "RATTUNE"
|
||||
|
||||
RA.playerName = nil
|
||||
@@ -244,10 +244,24 @@ function RA:BuildNameIndex()
|
||||
for j = 1, table.getn(att.steps) do
|
||||
local s = att.steps[j]
|
||||
if s and s.name and s.id then
|
||||
local nlow = string.lower(s.name)
|
||||
if s.type == "item" then
|
||||
map[string.lower(s.name)] = s.id
|
||||
map[nlow] = s.id
|
||||
elseif s.type == "quest" then
|
||||
qmap[string.lower(s.name)] = s.id
|
||||
qmap[nlow] = s.id
|
||||
-- Data.lua disambiguates faction-specific quests
|
||||
-- with a "(Alliance)" / "(Horde)" suffix that
|
||||
-- the in-game quest log does NOT include. Index
|
||||
-- the stripped variant so the name fallback in
|
||||
-- ScanQuestLog matches on stock 1.12 clients
|
||||
-- that don't return a questId.
|
||||
local _, _, stripped = string.find(nlow, "^(.-)%s*%(alliance%)%s*$")
|
||||
if not stripped then
|
||||
_, _, stripped = string.find(nlow, "^(.-)%s*%(horde%)%s*$")
|
||||
end
|
||||
if stripped and stripped ~= "" and not qmap[stripped] then
|
||||
qmap[stripped] = s.id
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user