Add a header and a simple one-icon rotation display for generated scripts.
Johnny C. Lam [05-14-14 - 00:37]
Add a header and a simple one-icon rotation display for generated scripts.
These generated scripts are now functional directly within Ovale.
However, they will generally need more work to split up the functions into
the usual "shortcd/main/aoe/cd" icons for default scripts.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1437 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleSimulationCraft.lua b/OvaleSimulationCraft.lua
index 8539001..593fd85 100644
--- a/OvaleSimulationCraft.lua
+++ b/OvaleSimulationCraft.lua
@@ -191,6 +191,13 @@ do
if profile.default_pet then
self:Append(script, "# pet=%s", profile.default_pet)
end
+
+ self:Append(script, "")
+ self:Append(script, "Include(ovale_items)")
+ self:Append(script, "Include(ovale_racials)")
+ self:Append(script, format("Include(ovale_%s_spells)", profile.class))
+ self:Append(script, "")
+
if profile.actionList then
for listName, actionList in pairs(profile.actionList) do
self:ParseActionList(script, listName, actionList)
@@ -198,6 +205,21 @@ do
end
self:Append(script, "")
+ if profile.spec then
+ self:Append(script, format("AddIcon mastery=%s help=main", profile.spec))
+ else
+ self:Append(script, "AddIcon help=main")
+ end
+ self:Append(script, "{")
+ self:Indent()
+ if profile.actionList.precombat then
+ self:Append(script, format("if InCombat(no) %s()", self:FunctionName("precombat")))
+ end
+ self:Append(script, format("%s()", self:FunctionName("default")))
+ self:UnIndent()
+ self:Append(script, "}")
+ self:Append(script, "")
+
tsort(self.symbols)
wipe(symbols)
for _, v in ipairs(self.symbols) do