WoWInterface SVN Livestock

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 141 to Rev 142
    Reverse comparison

Rev 141 → Rev 142

Livestock/Livestock.lua
365,7 → 365,8
elseif kind == "LAND" then
mounts = 0 -- reset mounts to 0 so we can start counting land mounts
for k in orderedPairs(settings) do -- Check the list of mounts, increment mounts, and add the index of the mounts to mountstable
if (settings[k].type == "land" or settings[k].type == "combo") or (settings[k].type == "flying" and LivestockSettings.flyland == 1) then
if (settings[k].type == "land" or settings[k].type == "combo" or settings[k].type == "combo2") or
(settings[k].type == "flying" and LivestockSettings.flyland == 1) then
mounts = mounts + 1
tinsert(mountstable, settings[k].index)
end
392,7 → 393,7
elseif kind == "WATER" then -- code is the same for water mounts with the appropriate changes; perhaps this could be a function call?
mounts = 0
for k in orderedPairs(settings) do
if (settings[k].type == "water" or settings[k].type == "combo") then
if (settings[k].type == "water" or settings[k].type == "combo" or settings[k].type == "combo2") then
mounts = mounts + 1
tinsert(mountstable, settings[k].index)
end
1184,8 → 1185,10
LivestockSettings.Mounts[name].type = "land"
elseif mountType == 231 or mountType == 232 or mountType == 254 then -- water mount
LivestockSettings.Mounts[name].type = "water"
elseif mountType == 407 or mountType == 412 then
elseif mountType == 407 then
LivestockSettings.Mounts[name].type = "combo" -- land/flying/water mount
elseif mountType == 412 then
LivestockSettings.Mounts[name].type = "combo2" -- land/water mount
elseif mountType == 402 then
LivestockSettings.Mounts[name].type = "dragon" -- dragonriding mount
else
1836,7 → 1839,7
 
for k in pairs(LivestockSettings.Mounts) do -- go through the land mounts and add the ones that are selected to the temp table
if LivestockSettings.Mounts[k].enableLand == 1 and
((LivestockSettings.Mounts[k].type == "land" or LivestockSettings.Mounts[k].type == "combo") or
((LivestockSettings.Mounts[k].type == "land" or LivestockSettings.Mounts[k].type == "combo" or LivestockSettings.Mounts[k].type == "combo2") or
(LivestockSettings.Mounts[k].type == "flying" and LivestockSettings.flyland == 1)) then
local _, _, _, _, isUsable = C_MountJournal.GetMountInfoByID(LivestockSettings.Mounts[k].index)
if isUsable == true then
2019,7 → 2022,7
end
else
for k in pairs(LivestockSettings.Mounts) do -- go through the water mounts and add the ones that are selected to the temp table (minus the Abyssal Seahorse)
if (LivestockSettings.Mounts[k].type == "water" or LivestockSettings.Mounts[k].type == "combo") and
if (LivestockSettings.Mounts[k].type == "water" or LivestockSettings.Mounts[k].type == "combo" or LivestockSettings.Mounts[k].type == "combo2") and
LivestockSettings.Mounts[k].enableWater == 1 and LivestockSettings.Mounts[k].spellID ~= 75207 then
tinsert(temp, LivestockSettings.Mounts[k].index)
end
Livestock/Change Log.txt
1,3 → 1,7
Version 3.3.7
 
- Fixed Otto and Ottuk mounts
 
Version 3.3.6
 
- TOC update for patch 10.1.0
Livestock/Livestock.toc
2,7 → 2,7
## Title: Livestock
## Notes: Enables easy random summoning of vanity pets and mounts, including the option of "smart mounting"
## Author: Kharthus - Deathwing(US)
## Version: 3.3.6
## Version: 3.3.7
## AddonCompartmentFunc: Livestock_OnAddonCompartmentClick
## IconTexture: 136456
## SavedVariablesPerCharacter: LivestockSettings