Mercurial > wow > mylilpony
comparison libMyLilPony/libMyLilPony_mountData.lua @ 60:81145a681a59
Fixed for legion xpack (patch 7.0) API changes
| author | syzler |
|---|---|
| date | Sat, 13 Aug 2016 15:29:39 -0400 |
| parents | 64e8f8e5fa41 |
| children |
comparison
equal
deleted
inserted
replaced
| 59:12b9c632919d | 60:81145a681a59 |
|---|---|
| 161 | 161 |
| 162 --- Checks whether or not the specified slot ID is a ground mount. | 162 --- Checks whether or not the specified slot ID is a ground mount. |
| 163 -- @param slotID The slot ID of the mount to be checked. | 163 -- @param slotID The slot ID of the mount to be checked. |
| 164 -- @return A Boolean value indicating whether or not the specified mount is a ground mount. | 164 -- @return A Boolean value indicating whether or not the specified mount is a ground mount. |
| 165 function MyLilPony.IsGroundMountSlot(slotID) | 165 function MyLilPony.IsGroundMountSlot(slotID) |
| 166 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); | 166 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); |
| 167 return mountType == 230 or mountType == 284; | 167 return mountType == 230 or mountType == 284; |
| 168 end | 168 end |
| 169 | 169 |
| 170 --- Checks whether or not the specified slot ID is a flying mount. | 170 --- Checks whether or not the specified slot ID is a flying mount. |
| 171 -- @param slotID The slot ID of the mount to be checked. | 171 -- @param slotID The slot ID of the mount to be checked. |
| 172 -- @return A Boolean value indicating whether or not the specified mount is a flying mount. | 172 -- @return A Boolean value indicating whether or not the specified mount is a flying mount. |
| 173 function MyLilPony.IsFlyingMountSlot(slotID) | 173 function MyLilPony.IsFlyingMountSlot(slotID) |
| 174 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); | 174 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); |
| 175 return mountType ==247 or mountType == 248; | 175 return mountType ==247 or mountType == 248; |
| 176 end | 176 end |
| 177 | 177 |
| 178 --- Checks whether or not the specified slot ID is an aquatic mount. | 178 --- Checks whether or not the specified slot ID is an aquatic mount. |
| 179 -- @param slotID The slot ID of the mount to be checked. | 179 -- @param slotID The slot ID of the mount to be checked. |
| 180 -- @return A Boolean value indicating whether or not the specified mount is an aquatic mount. | 180 -- @return A Boolean value indicating whether or not the specified mount is an aquatic mount. |
| 181 function MyLilPony.IsAquaticMountSlot(slotID) | 181 function MyLilPony.IsAquaticMountSlot(slotID) |
| 182 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); | 182 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); |
| 183 return mountType == 231 or mountType == 254; | 183 return mountType == 231 or mountType == 254; |
| 184 end | 184 end |
| 185 | 185 |
| 186 --- Checks whether or not the specified slot ID is a Temple of Ahn'Qiraj mount. | 186 --- Checks whether or not the specified slot ID is a Temple of Ahn'Qiraj mount. |
| 187 -- @param slotID The slot ID of the mount to be checked. | 187 -- @param slotID The slot ID of the mount to be checked. |
| 188 -- @return A Boolean value indicating whether or not the specified mount is a Temple of Ahn'Qiraj mount. | 188 -- @return A Boolean value indicating whether or not the specified mount is a Temple of Ahn'Qiraj mount. |
| 189 function MyLilPony.IsAhnQirajMountSlot(slotID) | 189 function MyLilPony.IsAhnQirajMountSlot(slotID) |
| 190 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); | 190 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); |
| 191 return mountType == 241; | 191 return mountType == 241; |
| 192 end | 192 end |
| 193 | 193 |
| 194 --- Checks whether or not the specified slot ID is a Vashj'ir mount. | 194 --- Checks whether or not the specified slot ID is a Vashj'ir mount. |
| 195 -- @param slotID The slot ID of the mount to be checked. | 195 -- @param slotID The slot ID of the mount to be checked. |
| 196 -- @return A Boolean value indicating whether or not the specified mount is a Vashj'ir mount. | 196 -- @return A Boolean value indicating whether or not the specified mount is a Vashj'ir mount. |
| 197 function MyLilPony.IsVashjirMountSlot(slotID) | 197 function MyLilPony.IsVashjirMountSlot(slotID) |
| 198 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); | 198 local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); |
| 199 return mountType == 232 or mountType == 231 or mountType == 254; | 199 return mountType == 232 or mountType == 231 or mountType == 254; |
| 200 end | 200 end |
