# HG changeset patch # User Caleb Atherton # Date 1466414706 14400 # Node ID 1fc8da9b8cd8dc4de79a703025c52e0b8adf7e1a # Parent 1344393a8000217dbc603bb80240f1426ea1545d Fixed bug caused by renaming changes in r469 (oops). diff -r 1344393a8000 -r 1fc8da9b8cd8 Main.lua --- a/Main.lua Sun Jun 19 20:47:42 2016 -0400 +++ b/Main.lua Mon Jun 20 05:25:06 2016 -0400 @@ -968,7 +968,7 @@ --local upgrade_type_id = tonumber(item_results[12]) local instance_difficulty_id = tonumber(item_results[13]) or 0 local num_bonus_ids = tonumber(item_results[14]) or 0 - -- 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 + -- upgrade_value is optional in 6.2! can be detected using upgrade_type_id, but it's just as easy to check like this local upgrade_value = tonumber(item_results[15 + num_bonus_ids]) or 0 -- LEGION @@ -980,12 +980,12 @@ end -- If there is anything special (non-zero) for this item then we need to make note of everything - if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_id) ~= 0 then + if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_value) ~= 0 then item = DBEntry("items", item_id) item.suffix_id = suffix_id item.unique_id = bit.band(unique_id, 0xFFFF) item.instance_difficulty_id = instance_difficulty_id - item.upgrade_id = upgrade_id + item.upgrade_value = upgrade_value if process_bonus_ids then