makeDurable

fun makeDurable(maxUses: Int)

Gives this item a durability bar acting as a limited-use counter.

Stacks are forced to maxStackSize = 1 and get maxDamage = maxUses; spend a charge with EffectiveDurability.consumeUse. See EffectiveDurability for the trade-offs vs. a PDC counter.

Parameters

maxUses

number of uses before the item breaks