comparison Main.lua @ 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 45ba0fad1fe4
children df1cdcd46fe1
comparison
equal deleted inserted replaced
198:541d1d24c456 199:7fdf97c18c86
812 end 812 end
813 local item = DBEntry("items", item_id) 813 local item = DBEntry("items", item_id)
814 local item_string = select(3, item_link:find("^|%x+|H(.+)|h%[.+%]")) 814 local item_string = select(3, item_link:find("^|%x+|H(.+)|h%[.+%]"))
815 815
816 if item_string then 816 if item_string then
817 local _, _, _, _, _, _, _, _, _, _, _, upgrade_id = (":"):split(item_string) 817 local _, _, _, _, _, _, _, suffix_id, unique_id, _, _, upgrade_id = (":"):split(item_string)
818
819 item.suffix_id = suffix_id
820 item.unique_id = bit.band(unique_id, 0xFFFF)
818 821
819 if upgrade_id then 822 if upgrade_id then
820 item.upgrade_id = upgrade_id 823 item.upgrade_id = upgrade_id
821 end 824 end
822 end 825 end