Mercurial > wow > wowdb-profiler
changeset 199:7fdf97c18c86 1.0.30
Store suffix_id and unique_id for items.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 04 Dec 2012 15:26:16 -0600 |
parents | 541d1d24c456 |
children | 2d2791de8a7c |
files | Main.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Fri Nov 30 12:47:32 2012 -0600 +++ b/Main.lua Tue Dec 04 15:26:16 2012 -0600 @@ -814,7 +814,10 @@ local item_string = select(3, item_link:find("^|%x+|H(.+)|h%[.+%]")) if item_string then - local _, _, _, _, _, _, _, _, _, _, _, upgrade_id = (":"):split(item_string) + local _, _, _, _, _, _, _, suffix_id, unique_id, _, _, upgrade_id = (":"):split(item_string) + + item.suffix_id = suffix_id + item.unique_id = bit.band(unique_id, 0xFFFF) if upgrade_id then item.upgrade_id = upgrade_id