Mercurial > wow > askmrrobot
comparison Constants.lua @ 185:a7f2ba17c39a v90
Shadowlands pre-patch update.
| author | yellowfive |
|---|---|
| date | Tue, 13 Oct 2020 10:49:07 -0700 |
| parents | 731cb3cedd3d |
| children | 21a69c63fee8 |
comparison
equal
deleted
inserted
replaced
| 184:f374d84470db | 185:a7f2ba17c39a |
|---|---|
| 22 Amr.IsSupportedInstanceId = Amr.Serializer.IsSupportedInstanceId | 22 Amr.IsSupportedInstanceId = Amr.Serializer.IsSupportedInstanceId |
| 23 Amr.IsSupportedInstance = Amr.Serializer.IsSupportedInstance | 23 Amr.IsSupportedInstance = Amr.Serializer.IsSupportedInstance |
| 24 --Amr.GetItemTooltip = Amr.Serializer.GetItemTooltip | 24 --Amr.GetItemTooltip = Amr.Serializer.GetItemTooltip |
| 25 --Amr.GetItemLevel = Amr.Serializer.GetItemLevel | 25 --Amr.GetItemLevel = Amr.Serializer.GetItemLevel |
| 26 Amr.GetItemUniqueId = Amr.Serializer.GetItemUniqueId | 26 Amr.GetItemUniqueId = Amr.Serializer.GetItemUniqueId |
| 27 Amr.ReadAzeritePowers = Amr.Serializer.ReadAzeritePowers | 27 --Amr.ReadAzeritePowers = Amr.Serializer.ReadAzeritePowers |
| 28 Amr.ProfessionSkillLineToName = Amr.Serializer.ProfessionSkillLineToName | 28 Amr.ProfessionSkillLineToName = Amr.Serializer.ProfessionSkillLineToName |
| 29 | 29 |
| 30 | 30 |
| 31 -- map of slot ID to display text | 31 -- map of slot ID to display text |
| 32 Amr.SlotDisplayText = { | 32 Amr.SlotDisplayText = { |
| 105 [35] = "ability_warrior_innerrage", -- WarriorFury | 105 [35] = "ability_warrior_innerrage", -- WarriorFury |
| 106 [36] = "ability_warrior_defensivestance", -- WarriorProtection | 106 [36] = "ability_warrior_defensivestance", -- WarriorProtection |
| 107 } | 107 } |
| 108 | 108 |
| 109 -- instance IDs ordered in preferred display order | 109 -- instance IDs ordered in preferred display order |
| 110 Amr.InstanceIdsOrdered = { 1861, 2070, 2096, 2164, 2217 } | 110 Amr.InstanceIdsOrdered = { 2296 } |
| 111 | 111 |
| 112 Amr.Difficulties = { | 112 Amr.Difficulties = { |
| 113 Lfr = 17, | 113 Lfr = 17, |
| 114 Normal = 14, | 114 Normal = 14, |
| 115 Heroic = 15, | 115 Heroic = 15, |
| 156 table.insert(parts, UnitLevel("player")) | 156 table.insert(parts, UnitLevel("player")) |
| 157 | 157 |
| 158 local specId = GetSpecializationInfo(GetSpecialization()) | 158 local specId = GetSpecializationInfo(GetSpecialization()) |
| 159 table.insert(parts, specId) | 159 table.insert(parts, specId) |
| 160 | 160 |
| 161 -- this indicates what kind of modifier appears after the bonus IDs | 161 table.insert(parts, 0) -- not sure what this is anymore |
| 162 if itemObj.upgradeId and itemObj.upgradeId ~= 0 then | |
| 163 table.insert(parts, 4) | |
| 164 elseif itemObj.level and itemObj.level ~= 0 then | |
| 165 table.insert(parts, 512) | |
| 166 else | |
| 167 table.insert(parts, 0) | |
| 168 end | |
| 169 | 162 |
| 170 table.insert(parts, 0) -- difficulty id, doesn't matter | 163 table.insert(parts, 0) -- difficulty id, doesn't matter |
| 171 | 164 |
| 172 if itemObj.bonusIds then | 165 if itemObj.bonusIds then |
| 173 table.insert(parts, #itemObj.bonusIds) | 166 table.insert(parts, #itemObj.bonusIds) |
| 175 table.insert(parts, v) | 168 table.insert(parts, v) |
| 176 end | 169 end |
| 177 else | 170 else |
| 178 table.insert(parts, 0) -- no bonus ids | 171 table.insert(parts, 0) -- no bonus ids |
| 179 end | 172 end |
| 180 | 173 |
| 181 -- upgrade id or level comes after bonuses | 174 if itemObj.level and itemObj.level ~= 0 then |
| 182 if itemObj.upgradeId and itemObj.upgradeId ~= 0 then | 175 table.insert(parts, 2) -- not sure if this is always 2 or not... |
| 183 table.insert(parts, itemObj.upgradeId) | 176 table.insert(parts, 9) -- not sure if this is always 9 or not... |
| 184 elseif itemObj.level and itemObj.level ~= 0 then | 177 table.insert(parts, itemObj.level) |
| 185 table.insert(parts, itemObj.level) | 178 elseif itemObj.upgradeId and itemObj.upgradeId ~= 0 then |
| 186 else | 179 -- figure this out (if we still care) |
| 187 table.insert(parts, 0) | 180 end |
| 188 end | |
| 189 | 181 |
| 190 -- we don't bother with relic bonus ids anymore when generating links | 182 -- we don't bother with relic bonus ids anymore when generating links |
| 183 table.insert(parts, 0) | |
| 191 table.insert(parts, 0) | 184 table.insert(parts, 0) |
| 192 table.insert(parts, 0) | 185 table.insert(parts, 0) |
| 193 table.insert(parts, 0) | 186 table.insert(parts, 0) |
| 194 | 187 |
| 195 return table.concat(parts, ":") | 188 return table.concat(parts, ":") |
