Debug_Durability_Condition_Primary
Server/Item/Interactions/_Debug/Debug_Durability_Condition_Primary.json, 2.5 KB
Fields
| Field | Type |
|---|---|
Type | string |
RunTime | number |
Effects | object |
Next | object |
Source
{
"Type": "Simple",
"RunTime": 0.117,
"Effects": {
"ItemAnimationId": "SwingRight",
"WorldSoundEventId": "SFX_Sword_T2_Swing",
"LocalSoundEventId": "SFX_Sword_T2_Swing_RL_Local"
},
"Next": {
"Type": "Selector",
"RunTime": 0.05,
"Effects": {
"Trails": [
{
"PositionOffset": {
"X": 1.3,
"Y": 0,
"Z": 0
},
"TargetNodeName": "Handle",
"TrailId": "Medium_Sword_Basic",
"RotationOffset": {
"Roll": 90.0
}
}
],
"CameraEffect": "Sword_Swing_Diagonal_Right"
},
"Selector": {
"Id": "Horizontal",
"Direction": "ToRight",
"TestLineOfSight": true,
"ExtendTop": 0.5,
"ExtendBottom": 0.5,
"StartDistance": 0.1,
"EndDistance": 2.75,
"Length": 90,
"RollOffset": 30,
"YawStartOffset": -60
},
"HitEntity": {
"Interactions": [
{
"Type": "DurabilityCondition",
"Threshold": 0.0,
"ValueType": "Absolute",
"Operator": "LessOrEqual",
"Next": {
"Type": "SendMessage",
"Message": "BROKEN! Damage = 1",
"Next": {
"Parent": "DamageEntityParent",
"DamageCalculator": {
"BaseDamage": {
"Physical": 1
}
}
}
},
"Failed": {
"Type": "DurabilityCondition",
"Threshold": 50.0,
"ValueType": "Percent",
"Operator": "LessThan",
"Next": {
"Type": "SendMessage",
"Message": "Low durability (<50%). Damage = 5",
"Next": {
"Parent": "DamageEntityParent",
"DamageCalculator": {
"BaseDamage": {
"Physical": 5
}
}
}
},
"Failed": {
"Type": "SendMessage",
"Message": "Healthy hit (>=50%). Damage = 15",
"Next": {
"Parent": "DamageEntityParent",
"DamageCalculator": {
"BaseDamage": {
"Physical": 15
}
}
}
}
}
}
]
},
"Next": {
"Type": "ModifyInventory",
"AdjustHeldItemDurability": -1,
"NotifyOnBreak": true
}
}
}