Mercurial > wow > wowdb-profiler
comparison Main.lua @ 471:1fc8da9b8cd8
Fixed bug caused by renaming changes in r469 (oops).
author | Caleb Atherton <catherton@curse.com> |
---|---|
date | Mon, 20 Jun 2016 05:25:06 -0400 |
parents | 1344393a8000 |
children | 39e87b600cad |
comparison
equal
deleted
inserted
replaced
470:1344393a8000 | 471:1fc8da9b8cd8 |
---|---|
966 --local level = tonumber(item_results[10]) | 966 --local level = tonumber(item_results[10]) |
967 --local specialization_id = tonumber(item_results[11]) | 967 --local specialization_id = tonumber(item_results[11]) |
968 --local upgrade_type_id = tonumber(item_results[12]) | 968 --local upgrade_type_id = tonumber(item_results[12]) |
969 local instance_difficulty_id = tonumber(item_results[13]) or 0 | 969 local instance_difficulty_id = tonumber(item_results[13]) or 0 |
970 local num_bonus_ids = tonumber(item_results[14]) or 0 | 970 local num_bonus_ids = tonumber(item_results[14]) or 0 |
971 -- upgrade_value is optional since 6.2! can probably be detected using unknown_upgrade_related_id, but it's just as easy to check like this | 971 -- upgrade_value is optional in 6.2! can be detected using upgrade_type_id, but it's just as easy to check like this |
972 local upgrade_value = tonumber(item_results[15 + num_bonus_ids]) or 0 | 972 local upgrade_value = tonumber(item_results[15 + num_bonus_ids]) or 0 |
973 | 973 |
974 -- LEGION | 974 -- LEGION |
975 if private.isLegion then | 975 if private.isLegion then |
976 local unkItemField1 = tonumber(item_results[16 + num_bonus_ids]) or 0 | 976 local unkItemField1 = tonumber(item_results[16 + num_bonus_ids]) or 0 |
978 if unkItemField1 > 0 then Debug("unkItemField1 is non-zero, specifically %d.", unkItemField1) end | 978 if unkItemField1 > 0 then Debug("unkItemField1 is non-zero, specifically %d.", unkItemField1) end |
979 if unkItemField2 > 0 then Debug("unkItemField2 is non-zero, specifically %d.", unkItemField2) end | 979 if unkItemField2 > 0 then Debug("unkItemField2 is non-zero, specifically %d.", unkItemField2) end |
980 end | 980 end |
981 | 981 |
982 -- If there is anything special (non-zero) for this item then we need to make note of everything | 982 -- If there is anything special (non-zero) for this item then we need to make note of everything |
983 if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_id) ~= 0 then | 983 if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_value) ~= 0 then |
984 item = DBEntry("items", item_id) | 984 item = DBEntry("items", item_id) |
985 item.suffix_id = suffix_id | 985 item.suffix_id = suffix_id |
986 item.unique_id = bit.band(unique_id, 0xFFFF) | 986 item.unique_id = bit.band(unique_id, 0xFFFF) |
987 item.instance_difficulty_id = instance_difficulty_id | 987 item.instance_difficulty_id = instance_difficulty_id |
988 item.upgrade_id = upgrade_id | 988 item.upgrade_value = upgrade_value |
989 | 989 |
990 if process_bonus_ids then | 990 if process_bonus_ids then |
991 | 991 |
992 -- Get ready for bonus IDs | 992 -- Get ready for bonus IDs |
993 if not item.seen_bonuses then | 993 if not item.seen_bonuses then |