|
for i = 1, GetNumCompanions("MOUNT") do |
local _, name, _, _, _, mountFlags = GetCompanionInfo("MOUNT",i) |
local name2 = strconcat(name, "-") |
if name and not LivestockSettings.Mounts[name] then -- if the name is valid and we don't have SV data for it, we need to make it |
local name2 = strconcat(name, "-") |
LivestockSettings.Mounts[name] = { index = i, } -- set the index of the mount |
|
if mountFlags == 7 then -- flying mount |
LivestockSettings.Mounts[name].type = "flying" |
elseif mountFlags == 31 then -- variable |
elseif mountFlags == 31 or mountFlags == 23 then -- variable |
LivestockSettings.Mounts[name].type = "flying" |
LivestockSettings.Mounts[name2] = { index = i, } |
LivestockSettings.Mounts[name2].type = "land" |