Kiwi Item Info

Kiwi Item Info

41.5k Downloads

Shift + Hover Comparison on Arcane Damage

tilkinsc opened this issue ยท 2 comments

commented

Seems to fail because bad tonumber(), moreso because +4 Arcane Damage is rendered as if it was +4 Damage

Message: Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:413: attempt to perform arithmetic on field 'max_dmg' (a nil value)
Time: Thu Oct  3 01:23:05 2019
Count: 32
Stack: Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:413: attempt to perform arithmetic on field 'max_dmg' (a nil value)
Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:413: in function <Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:394>
Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:965: in function <Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:963>
[C]: in function `SetCompareItem'
Interface\FrameXML\GameTooltip.lua:716: in function `GameTooltip_ShowCompareItem'
Interface\FrameXML\ContainerFrame.lua:1332: in function `UpdateTooltip'
Interface\FrameXML\GameTooltip.lua:496: in function <Interface\FrameXML\GameTooltip.lua:475>
[C]: ?

Locals: base = GameTooltip {
 questOrder = <table> {
 }
 updateTooltip = 0.200000
 numMoneyFrames = 2
 comparing = false
 0 = <userdata>
 shoppingTooltips = <table> {
 }
 TopOverlay = <unnamed> {
 }
 shownMoneyFrames = 1
 canAddRestStateLine = 1
 needsReset = false
 hasMoney = 1
 npcOrder = <table> {
 }
 _owner = QuestieFrame1739 {
 }
 BottomOverlay = <unnamed> {
 }
}
base_root = "GameTooltipText"
test = ShoppingTooltip1 {
 0 = <userdata>
 shownMoneyFrames = 1
 updateTooltip = 0.200000
 needsReset = true
 BottomOverlay = <unnamed> {
 }
 TopOverlay = <unnamed> {
 }
 hasMoney = 1
 numMoneyFrames = 1
}
test_root = "ShoppingTooltip1Text"
basic1 = <table> {
 Intellect = 0
 Agility = 0
 Stamina = 0
 Strength = 0
 Spirit = 0
}
def1 = <table> {
 Armor = 0
 Block = 0
 Durability = 0
}
att1 = <table> {
 dps = 10
 min_dmg = 4
}
special1 = <table> {
 Parry = 0
 Dodge = 0
}
resist1 = <table> {
 Nature Resistance = 0
 Frost Resistance = 0
 Arcane Resistance = 0
 Shadow Resistance = 0
 Holy Resistance = 0
 Fire Resistance = 0
}
equips1 = <table> {
}
enchants1 = nil
basic2 = <table> {
 Intellect = 0
 Agility = 0
 Stamina = 0
 Strength = 3
 Spirit = 10
}
def2 = <table> {
 Armor = 0
 Block = 0
 Durability = 0
}
att2 = <table> {
 dps = 21.100000
 max_dmg = 81
 min_dmg = 54
}
special2 = <table> {
 Parry = 0
 Dodge = 0
}
resist2 = <table> {
 Nature Resistance = 0
 Frost Resistance = 0
 Arcane Resistance = 0
 Shadow Resistance = 0
 Holy Resistance = 0
 Fire Resistance = 0
}
equips2 = <table> {
}
enchants2 = nil
line_added = false
min = -50
(*temporary) = nil
(*temporary) = 81
(*temporary) = 0.600000
(*temporary) = 0.066660
(*temporary) = true
(*temporary) = <userdata>
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = "attempt to perform arithmetic on field 'max_dmg' (a nil value)"
pry_item_stats = <function> defined @Interface\AddOns\KiwiItemInfo\KiwiItemInfo.lua:275
commented

Fixed in indev

commented

Should be fixed. Not sure.