Skip to content

Commit

Permalink
Merge pull request #78 from juntadna/master
Browse files Browse the repository at this point in the history
Update to add Swift Flight Form
  • Loading branch information
cdmichaelb authored Sep 18, 2021
2 parents f4fdb00 + 4b4e7a7 commit 090b673
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Outfitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ Outfitter.BuiltinEvents = {
["TRAVEL_FORM"] = true,
["NOT_TRAVEL_FORM"] = true,

["SWIFT_FLIGHT_FORM"] = true,
["NOT_SWIFT_FLIGHT_FORM"] = true,

["MOONKIN_FORM"] = true,
["NOT_MOONKIN_FORM"] = true,

Expand Down Expand Up @@ -944,6 +947,7 @@ Outfitter.cSpecialIDEvents =
Bear = {Equip = "BEAR_FORM", Unequip = "NOT_BEAR_FORM"},
Cat = {Equip = "CAT_FORM", Unequip = "NOT_CAT_FORM"},
Travel = {Equip = "TRAVEL_FORM", Unequip = "NOT_TRAVEL_FORM"},
Flight = {Equip = "SWIFT_FLIGHT_FORM", Unequip = "NOT_SWIFT_FLIGHT_FORM"},
Moonkin = {Equip = "MOONKIN_FORM", Unequip = "NOT_MOONKIN_FORM"},
Tree = {Equip = "TREE_FORM", Unequip = "NOT_TREE_FORM"},
Prowl = {Equip = "STEALTH", Unequip = "NOT_STEALTH"},
Expand Down Expand Up @@ -995,6 +999,7 @@ Outfitter.cClassSpecialOutfits =
{Name = Outfitter.cDruidBearForm, ScriptID = "Bear"},
{Name = Outfitter.cDruidCatForm, ScriptID = "Cat"},
{Name = Outfitter.cDruidTravelForm, ScriptID = "Travel"},
{Name = Outfitter.cDruidSwiftFlightForm, ScriptID = "Flight"},
{Name = Outfitter.cDruidMoonkinForm, ScriptID = "Moonkin"},
{Name = Outfitter.cDruidTreeOfLifeForm, ScriptID = "Tree"},
{Name = Outfitter.cDruidProwl, ScriptID = "Prowl"},
Expand Down Expand Up @@ -1164,6 +1169,7 @@ Outfitter.cShapeshiftIDInfo = {
[768] = {ID = "Cat"},
[783] = {ID = "Travel"},
[24858] = {ID = "Moonkin"},
[40120] = {ID = "Flight"},
CasterForm = {ID = "Caster"}, -- this is a psuedo-form which is active when no other druid form is

-- Rogue
Expand Down
8 changes: 8 additions & 0 deletions OutfitterScripting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Outfitter.ScriptModules.DruidShapeshift.Settings =
{id = "Travel", type = "boolean", label = "Travel form"},
{id = "Moonkin", type = "boolean", label = "Moonkin form"},
{id = "Tree", type = "boolean", label = "Tree form"},
{id = "Flight", type = "boolean", label = "Swift Flight form"},
}

Outfitter.ScriptModules.DruidShapeshift.Events =
Expand All @@ -110,6 +111,7 @@ Outfitter.ScriptModules.DruidShapeshift.Events =
Travel = "TRAVEL_FORM",
Moonkin = "MOONKIN_FORM",
Tree = "TREE_FORM",
Flight = "SWIFT_FLIGHT_FORM"
}

function Outfitter.ScriptModules.DruidShapeshift:GetEquipHeader(pSettings)
Expand Down Expand Up @@ -1038,6 +1040,12 @@ end
Class = "DRUID",
Script = Outfitter:GenerateDruidShapeshiftScript("TRAVEL_FORM", "This outfit will be worn whenever you're in Travel Form"),
},
{
Name = Outfitter.cDruidSwiftFlightForm,
ID = "Flight",
Class = "DRUID",
Script = Outfitter:GenerateDruidShapeshiftScript("SWIFT_FLIGHT_FORM", "This outfit will be worn whenever you're in Swift Flight Form"),
},
{
Name = Outfitter.cDruidMoonkinForm,
ID = "Moonkin",
Expand Down

0 comments on commit 090b673

Please sign in to comment.