WoWInterface SVN Livestock

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 79 to Rev 80
    Reverse comparison

Rev 79 → Rev 80

trunk/Livestock/Change Log.txt
1,3 → 1,7
Version 2.6.1
 
- Fixed issues with class mounts
 
Version 2.6.0
 
- Fixed flying in Broken Isles
trunk/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: 2.6.0
## Version: 2.6.1
## SavedVariablesPerCharacter: LivestockSettings
 
LibRecompense\RecompenseTools.lua
trunk/Livestock/Livestock.lua
1774,6 → 1774,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].type == "land") and LivestockSettings.Mounts[k].show == 1 then
local _, _, _, _, isUsable = C_MountJournal.GetMountInfoByID(LivestockSettings.Mounts[k].index)
if (LivestockSettings.Mounts[k].spellID == 61451 or
LivestockSettings.Mounts[k].spellID == 169952 or
LivestockSettings.Mounts[k].spellID == 61309 or
1794,7 → 1795,7
if LivestockSettings.Mounts[k].mountType == 284 then
tinsert(temp, LivestockSettings.Mounts[k].index)
end
else
elseif isUsable == true then
tinsert(temp, LivestockSettings.Mounts[k].index)
end
end
1805,15 → 1806,15
return
end
 
local number = temp[fastrandom(#temp)]
 
if (debug) then
local number = temp[fastrandom(#temp)]
local name = C_MountJournal.GetMountInfoByID(number)
local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(number)
print(format("MOUNT: land mount is '%s', index '%s', mountType '%s'", name, number, mountType))
C_MountJournal.SummonByID(number)
else
C_MountJournal.SummonByID(temp[fastrandom(#temp)])
end
 
C_MountJournal.SummonByID(number)
end
 
function Livestock.PickFlyingMount(breath)
1845,6 → 1846,7
 
for k in pairs(LivestockSettings.Mounts) do -- go through the flying mounts and add the ones that are selected to the temp table
if (LivestockSettings.Mounts[k].type == "flying") and LivestockSettings.Mounts[k].show == 1 then
local _, _, _, _, isUsable = C_MountJournal.GetMountInfoByID(LivestockSettings.Mounts[k].index)
if (LivestockSettings.Mounts[k].spellID == 61451 or
LivestockSettings.Mounts[k].spellID == 169952 or
LivestockSettings.Mounts[k].spellID == 61309 or
1859,7 → 1861,7
if LivestockSettings.Mounts[k].mountType == 248 then -- flying mount
tinsert(temp, LivestockSettings.Mounts[k].index)
end
else
elseif isUsable == true then
tinsert(temp, LivestockSettings.Mounts[k].index)
end
end
1871,15 → 1873,15
return
end
 
local number = temp[fastrandom(#temp)]
 
if (debug) then
local number = temp[fastrandom(#temp)]
local name = C_MountJournal.GetMountInfoByID(number)
local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(number)
print(format("MOUNT: flying mount is '%s', index '%s', mountType '%s'", name, number, mountType))
C_MountJournal.SummonByID(number)
else
C_MountJournal.SummonByID(temp[fastrandom(#temp)])
end
 
C_MountJournal.SummonByID(number)
end
 
function Livestock.PickWaterMount()
1957,15 → 1959,15
return
end
 
local number = temp[fastrandom(#temp)]
 
if (debug) then
local number = temp[fastrandom(#temp)]
local name = C_MountJournal.GetMountInfoByID(number)
local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(number)
print(format("MOUNT: water mount is '%s', index '%s', mountType '%s'", name, number, mountType))
C_MountJournal.SummonByID(number)
else
C_MountJournal.SummonByID(temp[fastrandom(#temp)])
end
 
C_MountJournal.SummonByID(number)
end
 
function Livestock.Dismount()