Mercurial > wow > wowdb-profiler
changeset 212:3c1623ab71db 1.0.35
Record item upgrade information and suffix even if item has no durability.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Wed, 19 Dec 2012 14:57:13 -0600 |
parents | 0c43cebaef84 |
children | 52d1e3f75eaf |
files | Main.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Mon Dec 17 13:52:52 2012 -0600 +++ b/Main.lua Wed Dec 19 14:57:13 2012 -0600 @@ -813,9 +813,6 @@ local function RecordItemData(item_id, item_link, durability) - if not durability or durability <= 0 then - return - end local item = DBEntry("items", item_id) local item_string = select(3, item_link:find("^|%x+|H(.+)|h%[.+%]")) @@ -832,7 +829,10 @@ item.upgrade_id = upgrade_id end end - item.durability = durability + + if durability and durability > 0 then + item.durability = durability + end end