DopingControl v0.6.4

This commit is contained in:
2026-08-30 15:37:17 +02:00
parent ecab5ba845
commit 695dd9dcd4
23 changed files with 2278 additions and 296 deletions
+7 -6
View File
@@ -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