From 82a392c9032e1709dec0425035d71f66bc875658 Mon Sep 17 00:00:00 2001 From: smariot Date: Wed, 2 Apr 2008 00:17:44 -0400 Subject: [PATCH] Preparing for 0.42 release. --- Development/compiler.lua | 29 +++++++++++++++++++++++++++++ Development/graph | 1 - QuestHelper.toc | 2 +- changes.txt | 6 ++++++ 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Development/compiler.lua b/Development/compiler.lua index cc4c6b4..2314b31 100644 --- a/Development/compiler.lua +++ b/Development/compiler.lua @@ -318,6 +318,17 @@ local function AddQuest(locale, faction, level, name, data) local q = GetQuest(locale, faction, level, name, type(data.hash) == "number" and data.hash or nil) + if type(data.id) == "number" then + local wdq = WoWData.quest[data.id] + if not wdq then + wdq = {name={},hash={},faction={}} + WoWData.quest[data.id] = wdq + end + wdq.name[locale] = name + wdq.hash[locale] = data.hash or wdq.hash[locale] + wdq.level = level + end + if type(data.finish) == "string" then AddQuestEnd(q, data.finish) elseif type(data.pos) == "table" then @@ -438,6 +449,15 @@ local function AddObjective(locale, category, name, objective) end if category == "monster" then + if type(objective.id) == "number" then + local wdm = WoWData.npc[objective.id] + if not wdm then + wdm = {name={}} + WoWData.npc[objective.id] = wdm + end + wdm.name[locale] = name + end + if type(objective.looted) == "number" and objective.looted >= 1 then o.looted = (o.looted or 0) + objective.looted end @@ -445,6 +465,15 @@ local function AddObjective(locale, category, name, objective) o.faction = objective.faction end elseif category == "item" then + if type(objective.id) == "number" then + local wdi = WoWData.item[objective.id] + if not wdi then + wdi = {name={}} + WoWData.item[objective.id] = wdi + end + wdi.name[locale] = name + end + if type(objective.opened) == "number" and objective.opened >= 1 then o.opened = (o.opened or 0) + objective.opened end diff --git a/Development/graph b/Development/graph index 25b2099..dee7f19 100755 --- a/Development/graph +++ b/Development/graph @@ -45,7 +45,6 @@ for level = 1,14 do file:write(line.."\n") end -use_locale["koKR"] = false use_locale["zhCN"] = false use_locale["esES"] = false diff --git a/QuestHelper.toc b/QuestHelper.toc index 0b13c02..2efb13f 100644 --- a/QuestHelper.toc +++ b/QuestHelper.toc @@ -3,7 +3,7 @@ ## Author: smariot, vipersniper ## Notes: Calculates an optimal route for you to follow while questing. ## Notes-deDE: Berechnet eine optimale Route für dich, der du während dem Questen folgen kannst. -## Version: 0.41 +## Version: 0.42 ## OptionalDeps: Cartographer ## SavedVariables: QuestHelper_SaveVersion QuestHelper_Locale QuestHelper_Quests QuestHelper_Objectives QuestHelper_FlightInstructors QuestHelper_FlightRoutes QuestHelper_Pref QuestHelper_UID QuestHelper_SaveDate ## SavedVariablesPerCharacter: QuestHelper_KnownFlightRoutes QuestHelper_Home QuestHelper_CharVersion diff --git a/changes.txt b/changes.txt index 389bf75..29eb0c7 100644 --- a/changes.txt +++ b/changes.txt @@ -1,3 +1,9 @@ +== Version 0.[http://en.wikipedia.org/wiki/Ultimate_Question 42] Uploaded 04/02/2008 == + +* Includes a Korean translation that was sent to me. +* Now uses the correct fonts so that non-latin characters display properly. +* Build script now uses the collected IDs from 0.41 to combine data between locales. + == Version 0.41 Uploaded 03/29/2008 == * Now collects the IDs of quests, NPCs, and items, using the new QuestLink and UnitGUID functions made availiable in 2.4. If I ever get motivated enough to rewrite QuestHelper, it will use these values. -- 2.11.4.GIT