1
0
Bifurcation 0

Created 'static' variables 'ALLIANCE' and 'HORDE' to eventually replace all references by number, thus enhancing readability.

Cette révision appartient à :
Nathanial.C.Jones 2011-04-03 20:36:10 +00:00
Parent c2d32c4785
révision 73b8036c79
1 fichiers modifiés avec 4 ajouts et 1 suppressions

Voir le fichier

@ -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)