Quantcast

Update GroupTools to use new API constants.

F16Gaming [11-28-12 - 16:53]
Update GroupTools to use new API constants.
Filename
GroupTools.lua
String.lua
diff --git a/GroupTools.lua b/GroupTools.lua
index 24d66c6..8c92e10 100644
--- a/GroupTools.lua
+++ b/GroupTools.lua
@@ -51,22 +51,22 @@ C.GroupTools = {
 	RaidMax = 40,
 	Difficulty = {
 		Dungeon = {
-			[1] = "GT_DUNGEON_NORMAL",
-			[2] = "GT_DUNGEON_HEROIC",
-			[3] = "GT_DUNGEON_CHALLENGE",
-			Normal = 1,
-			Heroic = 2,
-			Challenge = 3
+			[DIFFICULTY_DUNGEON_NORMAL] = "GT_DUNGEON_NORMAL",
+			[DIFFICULTY_DUNGEON_HEROIC] = "GT_DUNGEON_HEROIC",
+			[DIFFICULTY_DUNGEON_CHALLENGE] = "GT_DUNGEON_CHALLENGE",
+			Normal = DIFFICULTY_DUNGEON_NORMAL,
+			Heroic = DIFFICULTY_DUNGEON_HEROIC,
+			Challenge = DIFFICULTY_DUNGEON_CHALLENGE
 		},
 		Raid = {
-			[1] = "GT_RAID_N10",
-			[2] = "GT_RAID_N25",
-			[3] = "GT_RAID_H10",
-			[4] = "GT_RAID_H25",
-			Normal10 = 1,
-			Normal25 = 2,
-			Heroic10 = 3,
-			Heroic25 = 4
+			[DIFFICULTY_RAID10_NORMAL] = "GT_RAID_N10",
+			[DIFFICULTY_RAID25_NORMAL] = "GT_RAID_N25",
+			[DIFFICULTY_RAID10_HEROIC] = "GT_RAID_H10",
+			[DIFFICULTY_RAID25_HEROIC] = "GT_RAID_H25",
+			Normal10 = DIFFICULTY_RAID10_NORMAL,
+			Normal25 = DIFFICULTY_RAID25_NORMAL,
+			Heroic10 = DIFFICULTY_RAID10_HEROIC,
+			Heroic25 = DIFFICULTY_RAID25_HEROIC
 		}
 	}
 }
diff --git a/String.lua b/String.lua
index 9039b70..fab29e3 100644
--- a/String.lua
+++ b/String.lua
@@ -1,18 +1,18 @@
 --[[
 	* Copyright (c) 2011-2012 by Adam Hellberg.
-	*
+	*
 	* This file is part of Command.
-	*
+	*
 	* Command is free software: you can redistribute it and/or modify
 	* it under the terms of the GNU General Public License as published by
 	* the Free Software Foundation, either version 3 of the License, or
 	* (at your option) any later version.
-	*
+	*
 	* Command is distributed in the hope that it will be useful,
 	* but WITHOUT ANY WARRANTY; without even the implied warranty of
 	* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 	* GNU General Public License for more details.
-	*
+	*
 	* You should have received a copy of the GNU General Public License
 	* along with Command. If not, see <http://www.gnu.org/licenses/>.
 --]]