benilla-re systems structs docs

s_durabilityCostsStore

global · dbc

Address
0xc0ddfc · 20 bytes, up to 0xc0de0f
Type
uint32_t[5]
Meaning
Holds the DurabilityCosts.dbc store
Confidence
verified, proof one
Finding
objectlayer/items#repair-cost

Finding: Repair cost in objectlayer: items

The repair cost of a damaged item is the missing durability times a quality multiplier times a per-subclass cost, rounded half away from zero, at least 1. Only weapons (class 2, subclasses 0 to 21) and armour (class 4, subclasses 0 to 8) cost anything; a wrapped item, one without maximum durability, or one at full durability costs 0. A DurabilityCosts row is 30 dwords: the id, 21 weapon costs and 8 armour costs. So weapon subclass 21 reads armour column 0, and armour subclass 8 reads past the row, the next row's id.

The derivation is in the doc.