Relative Durability (Item Condition Type)
Compares the item's remaining durability, as a fraction of its maximum durability, with a number.
Type ID: apoli:relative_durability
note
The fraction is currentDurability / maxDurability, so 1 is a brand new item.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How the relative durability is compared with compare_to. |
compare_to | Float | required | The number the relative durability is compared with. |
Examples
"item_condition": {
"type": "apoli:relative_durability",
"comparison": ">=",
"compare_to": 0.9
}This checks whether the item has 90% of its durability or more left.