1
0
Bifurcation 0

Fixed issue 201. More data collection structure changes.

Cette révision appartient à :
Nathanial.C.Jones 2010-12-16 12:50:13 +00:00
Parent d0cb454610
révision 9ea6f88143
2 fichiers modifiés avec 25 ajouts et 7 suppressions

Voir le fichier

@ -22,12 +22,14 @@ local racelookup = {
["Dwarf"] = "D",
["Human"] = "H",
["NightElf"] = "E",
["Worgen"] = "W",
["Orc"] = "O",
["Troll"] = "T",
["Tauren"] = "N",
["Undead"] = "U",
["BloodElf"] = "B",
["Goblin"] = "L"
-- lol i spelled nub
}
@ -36,20 +38,34 @@ local function GetSpecBolus()
local level = UnitLevel("player")
local _, race = UnitRace("player")
local talstr = "("
--[[ assert(racelookup[race]) ]]
local bso = Bitstream.Output(8)
--local bso = Bitstream.Output(8)
for t = 1, GetNumTalentTabs() do -- come on. Is this ever not going to be 3? Seriously?
if t == 1 then
talstr = talstr .. "("
else
talstr = talstr .. ",("
end
for ta = 1, GetNumTalents(t) do
local _, _, _, _, rank, _ = GetTalentInfo(t, ta)
bso:append(rank, 3)
if ta == 1 then
talstr = talstr .. rank
else
talstr = talstr .. "," .. rank
end
--bso:append(rank, 3)
end
bso:append(6, 3) -- no 6-point talents, so we use this as an end-of-tree market
talstr = talstr .. ")"
--bso:append(6, 3) -- no 6-point talents, so we use this as an end-of-tree market
end
bso:append(7, 3) -- end-of-spec! because of *all of those 4-tree classes*
talstr = talstr .. ")"
--bso:append(7, 3) -- end-of-spec! because of *all of those 4-tree classes*
return string.format("2%s%s%02d", classlookup[id], racelookup[race] or "", level) .. bso:finish()
--return string.format("2%s%s%02d", classlookup[id], racelookup[race] or "", level) .. bso:finish()
return string.format("(2%s,%s,%02d)", classlookup[id], racelookup[race] or "", level) .. talstr
end
function QH_Collect_Spec_Init(_, API)

Voir le fichier

@ -287,10 +287,12 @@ function load_graph_links()
end
-- I hate Blizzard... They can't make up their mind weather we are on LostIsles or Hyjal_terrain1, but we only seem to be on one or the other.
if coord[1] == 208 and not QuestHelper_ZoneLookup[coord[1]] then
if (coord[1] == 208 or coord[1] == 209) and not QuestHelper_ZoneLookup[coord[1]] then
coord[1] = 181
elseif coord[1] == 181 and not QuestHelper_ZoneLookup[coord[1]] then
elseif (coord[1] == 181 or coord[1] == 209) and not QuestHelper_ZoneLookup[coord[1]] then
coord[1] = 208
elseif (coord[1] == 181 or coord[1] == 208) and not QuestHelper_ZoneLookup[coord[1]] then
coord[1] = 209
end
QuestHelper: Assert(QuestHelper_ZoneLookup[coord[1]], string.format("Coord[1] = %d", coord[1]))