For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/SetItemDamageFunction.md.

Class: SetItemDamageFunction

damage

Beta

修改掉落物品耐久度值的战利品物品函数。

Loot item function that modifies the durability value of the item dropped.

Extends

Properties

conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions


damage

readonly damage: NumberRange

Beta

Remarks

函数随机选择耐久度值的范围,包含最小值和最大值。必须始终介于 0.0 和 1.0 之间。

The value range from which the function randomly chooses the durability value to assign. Contains minimum and maximum values. Must always be between 0.0 and 1.0.

同领域相关