Stat summery not working properly with weapons #21


  • New
  • Defect
Open
Assigned to whitetooth3
  • _ForgeUser1193160 created this issue Aug 29, 2012

    With a 2 handed bow equipped if I mouse over another ranged weapon the stat summery doesn't show the correct stat differences, it shows me the full stats of the item, not the differences between the item I have equipped and the item I'm mousing over.

    This screenshot is with me having http://www.wowhead.com/item=78480 equipped and mousing over http://www.wowhead.com/item=78359

    The difference in stats shown in the summery are much larger than they should be.

  • _ForgeUser1193160 added the tags New Defect Aug 29, 2012
  • _ForgeUser1193160 added an attachment WoWScrnShot_082912_135434.png Aug 29, 2012

    WoWScrnShot_082912_135434.png

  • dekallo posted a comment Sep 8, 2012

    I think this is due to the following variable:

    local getSlotID = {
    	INVTYPE_AMMO           = 0,
    	INVTYPE_GUNPROJECTILE  = 0,
    	INVTYPE_BOWPROJECTILE  = 0,
    	INVTYPE_HEAD           = 1,
    	INVTYPE_NECK           = 2,
    	INVTYPE_SHOULDER       = 3,
    	INVTYPE_BODY           = 4,
    	INVTYPE_CHEST          = 5,
    	INVTYPE_ROBE           = 5,
    	INVTYPE_WAIST          = 6,
    	INVTYPE_LEGS           = 7,
    	INVTYPE_FEET           = 8,
    	INVTYPE_WRIST          = 9,
    	INVTYPE_HAND           = 10,
    	INVTYPE_FINGER         = {11,12},
    	INVTYPE_TRINKET        = {13,14},
    	INVTYPE_CLOAK          = 15,
    	INVTYPE_WEAPON         = {16,17},
    	INVTYPE_2HWEAPON       = 16+17,
    	INVTYPE_WEAPONMAINHAND = 16,
    	INVTYPE_WEAPONOFFHAND  = 17,
    	INVTYPE_SHIELD         = 17,
    	INVTYPE_HOLDABLE       = 17,
    	INVTYPE_RANGED         = 18,
    	INVTYPE_RANGEDRIGHT    = 18,
    	INVTYPE_RELIC          = 18,
    	INVTYPE_GUN            = 18,
    	INVTYPE_CROSSBOW       = 18,
    	INVTYPE_WAND           = 18,
    	INVTYPE_THROWN         = 18,
    	INVTYPE_TABARD         = 19,
    }
    

    Relics and thrown were removed from the game. Crossbows, bows, and guns were moved to a 2h slot, and wands were moved to a main hand slot. I was able to get the compare tooltips to display correctly by changing the declaration of that variable so that ranged, guns, and crossbows were 16+17 and wands were 16.

    I don't know LUA though or much about how LibStatLogic works so take this as you will.


To post a comment, please login or register a new account.