Mercurial > wow > askmrrobot
comparison Constants.lua @ 69:69db1c3025ac v27
fixed some bugs with 6.2 item link format changes, added bib overwolf support
author | yellowfive |
---|---|
date | Mon, 06 Jul 2015 17:39:57 -0700 |
parents | e638168c3395 |
children | 0515882856f1 |
comparison
equal
deleted
inserted
replaced
68:6c523f147709 | 69:69db1c3025ac |
---|---|
144 table.insert(parts, 0) | 144 table.insert(parts, 0) |
145 else | 145 else |
146 table.insert(parts, -math.abs(itemObj.suffixId)) | 146 table.insert(parts, -math.abs(itemObj.suffixId)) |
147 end | 147 end |
148 | 148 |
149 table.insert(parts, 0) | 149 table.insert(parts, 0) -- some unique id, doesn't seem to matter |
150 table.insert(parts, UnitLevel("player")) | 150 table.insert(parts, UnitLevel("player")) |
151 table.insert(parts, 0) -- unknown | 151 table.insert(parts, 0) -- unknown |
152 table.insert(parts, itemObj.upgradeId) | 152 table.insert(parts, 0) -- unknown |
153 table.insert(parts, 0) | 153 table.insert(parts, 0) -- difficulty id, doesn't matter |
154 | 154 |
155 if itemObj.bonusIds then | 155 if itemObj.bonusIds then |
156 table.insert(parts, #itemObj.bonusIds) | 156 table.insert(parts, #itemObj.bonusIds) |
157 for i,v in ipairs(itemObj.bonusIds) do | 157 for i,v in ipairs(itemObj.bonusIds) do |
158 table.insert(parts, v) | 158 table.insert(parts, v) |
159 end | 159 end |
160 end | 160 else |
161 table.insert(parts, 0) -- no bonus ids | |
162 end | |
163 | |
164 -- upgrade id is tacked onto the end now it seems | |
165 if (not itemObj.bonusIds or #itemObj.bonusIds == 0) and itemObj.upgradeId and itemObj.upgradeId ~= 0 then | |
166 table.insert(parts, itemObj.upgradeId) | |
167 end | |
161 | 168 |
162 return table.concat(parts, ":") | 169 return table.concat(parts, ":") |
163 end | 170 end |
164 | 171 |
165 -- a unique ID useful for determining if a player has an item equipped or not | 172 -- a unique ID useful for determining if a player has an item equipped or not |