Quantcast

Give default scripts a unique name to use via "Include(...)".

Johnny C. Lam [07-13-14 - 11:29]
Give default scripts a unique name to use via "Include(...)".

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1524 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
scripts/ovale_deathknight.lua
scripts/ovale_druid.lua
scripts/ovale_hunter.lua
scripts/ovale_mage.lua
scripts/ovale_monk.lua
scripts/ovale_paladin.lua
scripts/ovale_priest.lua
scripts/ovale_rogue.lua
scripts/ovale_shaman.lua
scripts/ovale_warlock.lua
scripts/ovale_warrior.lua
diff --git a/scripts/ovale_deathknight.lua b/scripts/ovale_deathknight.lua
index 3ff38ba..30fd036 100644
--- a/scripts/ovale_deathknight.lua
+++ b/scripts/ovale_deathknight.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_deathknight"
 	local desc = "[5.4] Ovale: Blood, Frost, Unholy"
 	local code = [[
 # Ovale death knight script based on SimulationCraft.
@@ -833,5 +833,8 @@ AddIcon mastery=unholy size=small checkboxon=opt_icons_right
 	UseItemActions()
 }
 ]]
-	OvaleScripts:RegisterScript("DEATHKNIGHT", name, desc, code, "script")
+
+	OvaleScripts:RegisterScript("DEATHKNIGHT", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("DEATHKNIGHT", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_druid.lua b/scripts/ovale_druid.lua
index 0de7dc8..abe7305 100644
--- a/scripts/ovale_druid.lua
+++ b/scripts/ovale_druid.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_druid"
 	local desc = "[5.4] Ovale: Balance, Feral, Guardian, Restoration"
 	local code = [[
 # Ovale druid script based on SimulationCraft.
@@ -1000,5 +1000,7 @@ AddIcon mastery=restoration size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("DRUID", name, desc, code, "script")
+	OvaleScripts:RegisterScript("DRUID", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("DRUID", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_hunter.lua b/scripts/ovale_hunter.lua
index 7e45b07..7e81f95 100644
--- a/scripts/ovale_hunter.lua
+++ b/scripts/ovale_hunter.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_hunter"
 	local desc = "[5.4] Ovale: Beast Mastery, Marksmanship, Survival"
 	local code = [[
 # Ovale hunter script based on SimulationCraft.
@@ -607,5 +607,7 @@ AddIcon mastery=survival size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("HUNTER", name, desc, code, "script")
+	OvaleScripts:RegisterScript("HUNTER", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("HUNTER", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_mage.lua b/scripts/ovale_mage.lua
index 583330d..d9bf6b3 100644
--- a/scripts/ovale_mage.lua
+++ b/scripts/ovale_mage.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_mage"
 	local desc = "[5.4] Ovale: Arcane, Fire, Frost"
 	local code = [[
 # Ovale mage script based on SimulationCraft.
@@ -616,5 +616,7 @@ AddIcon mastery=frost size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("MAGE", name, desc, code, "script")
+	OvaleScripts:RegisterScript("MAGE", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("MAGE", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_monk.lua b/scripts/ovale_monk.lua
index 5a62c2e..b7ddce1 100644
--- a/scripts/ovale_monk.lua
+++ b/scripts/ovale_monk.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_monk"
 	local desc = "[5.4] Ovale: Brewmaster, Mistweaver, Windwalker"
 	local code = [[
 # Ovale monk script based on SimulationCraft.
@@ -526,5 +526,7 @@ AddIcon mastery=windwalker size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("MONK", name, desc, code, "script")
+	OvaleScripts:RegisterScript("MONK", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("MONK", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_paladin.lua b/scripts/ovale_paladin.lua
index 2072b3f..73ecddf 100644
--- a/scripts/ovale_paladin.lua
+++ b/scripts/ovale_paladin.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_paladin"
 	local desc = "[5.4] Ovale: Holy, Protection, Retribution"
 	local code = [[
 # Ovale paladin script based on SimulationCraft.
@@ -474,5 +474,7 @@ AddIcon mastery=retribution size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("PALADIN", name, desc, code, "script")
+	OvaleScripts:RegisterScript("PALADIN", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("PALADIN", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_priest.lua b/scripts/ovale_priest.lua
index 061fb6b..bcb947b 100644
--- a/scripts/ovale_priest.lua
+++ b/scripts/ovale_priest.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_priest"
 	local desc = "[5.4] Ovale: Shadow"
 	local code = [[
 # Ovale shadow script based on SimulationCraft.
@@ -217,5 +217,7 @@ AddIcon mastery=shadow size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("PRIEST", name, desc, code, "script")
+	OvaleScripts:RegisterScript("PRIEST", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("PRIEST", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_rogue.lua b/scripts/ovale_rogue.lua
index 8ce139d..ff9c759 100644
--- a/scripts/ovale_rogue.lua
+++ b/scripts/ovale_rogue.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_rogue"
 	local desc = "[5.4.7] Ovale: Assassination, Combat, Subtlety"
 	local code = [[
 # Ovale rogue script based on SimulationCraft.
@@ -599,5 +599,7 @@ AddIcon mastery=subtlety size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("ROGUE", name, desc, code, "script")
+	OvaleScripts:RegisterScript("ROGUE", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("ROGUE", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_shaman.lua b/scripts/ovale_shaman.lua
index c7e21b9..298a87d 100644
--- a/scripts/ovale_shaman.lua
+++ b/scripts/ovale_shaman.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_shaman"
 	local desc = "[5.4] Ovale: Elemental, Enhancement, Restoration"
 	local code = [[
 # Ovale shaman script based on SimulationCraft.
@@ -548,5 +548,7 @@ AddIcon mastery=restoration size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("SHAMAN", name, desc, code, "script")
+	OvaleScripts:RegisterScript("SHAMAN", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("SHAMAN", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_warlock.lua b/scripts/ovale_warlock.lua
index 9c7e0bc..34408f6 100644
--- a/scripts/ovale_warlock.lua
+++ b/scripts/ovale_warlock.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_warlock"
 	local desc = "[5.4] Ovale: Affliction, Demonology (5.2), Destruction"
 	local code = [[
 # Ovale warlock script based on SimulationCraft.
@@ -447,5 +447,7 @@ AddIcon mastery=destruction size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("WARLOCK", name, desc, code, "script")
+	OvaleScripts:RegisterScript("WARLOCK", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("WARLOCK", "Ovale", desc, code, "script")
 end
diff --git a/scripts/ovale_warrior.lua b/scripts/ovale_warrior.lua
index 9102fd3..af40dcc 100644
--- a/scripts/ovale_warrior.lua
+++ b/scripts/ovale_warrior.lua
@@ -2,7 +2,7 @@ local _, Ovale = ...
 local OvaleScripts = Ovale.OvaleScripts

 do
-	local name = "Ovale"
+	local name = "ovale_warrior"
 	local desc = "[5.4] Ovale: Arms, Fury, Protection"
 	local code = [[
 # Ovale warrior script based on SimulationCraft.
@@ -772,5 +772,7 @@ AddIcon mastery=protection size=small checkboxon=opt_icons_right
 }
 ]]

-	OvaleScripts:RegisterScript("WARRIOR", name, desc, code, "script")
+	OvaleScripts:RegisterScript("WARRIOR", name, desc, code, "include")
+	-- Register as the default Ovale script.
+	OvaleScripts:RegisterScript("WARRIOR", "Ovale", desc, code, "script")
 end