DopingControl v0.6.4
This commit is contained in:
+7
-6
@@ -122,9 +122,11 @@ DC_Hit = DC_Hit or {}
|
||||
local H = DC_Hit
|
||||
|
||||
-- Equipment slots that can carry +hit, in inventory-slot order. This is
|
||||
-- deliberately its OWN list and not DC_Gear.InvSlots(): the enchant tab
|
||||
-- has no waist column, but a belt most certainly can carry hit. Shirt (4)
|
||||
-- and tabard (19) never carry stats and are left out.
|
||||
-- deliberately its OWN list and not DC_Gear.InvSlots(): the two lists
|
||||
-- happen to agree today (both cover the waist, invSlot 6 -- see
|
||||
-- data/enchants.lua's bug-history note), but this file must not assume
|
||||
-- that stays true, so it keeps every hit-bearing slot spelled out here.
|
||||
-- Shirt (4) and tabard (19) never carry stats and are left out.
|
||||
H.SLOTS = { 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }
|
||||
|
||||
H.SLOT_MAIN = 16
|
||||
@@ -888,9 +890,8 @@ end
|
||||
-- ReadUnit(unit, rawLinks) -> hit, race
|
||||
-- rawLinks : OPTIONAL { [invSlot] = link } that scan/gear.lua already
|
||||
-- fetched for this unit. Slots it covers are taken from it
|
||||
-- (no second GetInventoryItemLink pass); slots outside its
|
||||
-- coverage -- the waist, which the enchant tab has no column
|
||||
-- for -- are fetched here.
|
||||
-- (no second GetInventoryItemLink pass); any slot H.SLOTS
|
||||
-- needs that rawLinks did not cover is fetched here instead.
|
||||
-- hit : the store shape documented in the file header
|
||||
-- race : race token from UnitRace (2nd return, e.g. "NightElf");
|
||||
-- needed for the racial weapon-skill estimate of foreign
|
||||
|
||||
Reference in New Issue
Block a user