API reference Obsidian.API.Loot.Functions
SetDamageFunction class
Sets the remaining durability of a damageable item as a fraction of its max damage (1 = undamaged), or adds to it when SetDamageFunction.Add is set. Other items are left alone.
public sealed class SetDamageFunction : LootFunction
In Obsidian.API.
Constructors
public SetDamageFunction();Properties
public bool Add { get; init; }public required INumberProvider Damage { get; init; }