WoWInterface SVN Livestock-Cataclysm

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 8 to Rev 9
    Reverse comparison

Rev 8 → Rev 9

Livestock/Livestock.lua
995,6 → 995,20
local name2 = strconcat(name, "-")
LivestockSettings.Mounts[name] = { index = i, } -- set the index of the mount
 
--[[ mountFlags explanation
Ground 0x01
Fly 0x02
Float 0x04
Underwater 0x08
Jump 0x10
 
Flying mounts = 7
Water mounts = 12
Ground mounts = 29
Flying carpets = 23 (they can't swim)
Multi-purpose = 31
]]
 
if mountFlags == 7 then -- flying mount
LivestockSettings.Mounts[name].type = "flying"
elseif mountFlags == 31 or mountFlags == 23 then -- variable