LibStatLogic-1.2

21 - Stat summery not working properly with weapons

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.

  • WoWScrnShot_082912_135434.png
User When Change
mikari Aug 29, 2012 at 12:56 UTC

Added attachment WoWScrnShot_082912_135434.png

mikari Aug 29, 2012 at 12:56 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of dekallo dekallo Sep 08, 2012 at 20:25 UTC - 0 likes

    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.

  • 1 comment

Facts

Last updated
Sep 08, 2012
Reported
Aug 29, 2012
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees