Created 'static' variables 'ALLIANCE' and 'HORDE' to eventually replace all references by number, thus enhancing readability.
Cette révision appartient à :
Parent
c2d32c4785
révision
73b8036c79
|
@ -3,6 +3,9 @@ QuestHelper_Loadtime["utility.lua"] = GetTime()
|
|||
|
||||
QuestHelper = CreateFrame("Frame", "QuestHelper", nil)
|
||||
|
||||
--[[ static ]] ALLIANCE = 1
|
||||
--[[ static ]] HORDE = 2
|
||||
|
||||
local default_colour_theme =
|
||||
{message_prefix={0.4, 0.78, 1},
|
||||
message={1, 0.6, 0.2},
|
||||
|
@ -258,7 +261,7 @@ function QuestHelper:UnitPosition(unit)
|
|||
end
|
||||
|
||||
function QuestHelper:PlayerFaction()
|
||||
return UnitFactionGroup("player") == "Alliance" and 1 or 2
|
||||
return UnitFactionGroup("player") == "Alliance" and ALLIANCE or HORDE
|
||||
end
|
||||
|
||||
function QuestHelper:LocationString(i, x, y)
|
||||
|
|
Référencer dans un nouveau ticket