Stamina
Server/Entity/Stats/Stamina.json, 2.5 KB
Fields
| Field | Type |
|---|---|
InitialValue | number |
Min | number |
Max | number |
Shared | boolean |
Regenerating | array[5] |
MinValueEffects | object |
MaxValueEffects | object |
Source
{
"InitialValue": 10,
"Min": -4,
"Max": 10,
"Shared": false,
"Regenerating": [
{
"$Comment": "Positive stamina regeneration values",
"Interval": 0.1,
"Amount": 0.3,
"RegenType": "Additive",
"Conditions": [
{
"Id": "Stat",
"Stat": "StaminaRegenDelay",
"Amount": 0
},
{
"Id": "Stat",
"Stat": "Stamina",
"Amount": 0,
"Comparison": "Gte"
},
{
"Id": "Wielding",
"Inverse": true
},
{
"Id": "Sprinting",
"Inverse": true
},
{
"Id": "Gliding",
"Inverse": true
}
]
},
{
"$Comment": "Player in creative mode",
"Interval": 0.5,
"Amount": 1.0,
"RegenType": "Percentage",
"Conditions": [
{
"Id": "Alive"
},
{
"Id": "CheckPlayerGameMode",
"GameMode": "Creative"
}
]
},
{
"$Comment": "Overdrawn state regeneration values",
"Interval": 0.1,
"Amount": 0.3,
"RegenType": "Additive",
"Conditions": [
{
"Id": "Stat",
"Stat": "StaminaRegenDelay",
"Amount": 0
},
{
"Id": "Stat",
"Stat": "Stamina",
"Amount": 0,
"Comparison": "Lt"
},
{
"Id": "Wielding",
"Inverse": true
},
{
"Id": "Sprinting",
"Inverse": true
},
{
"Id": "Gliding",
"Inverse": true
}
]
},
{
"Interval": 0.1,
"Amount": -0.1,
"ClampAtZero": true,
"RegenType": "Additive",
"Conditions": [
{
"Id": "Sprinting"
}
]
},
{
"Interval": 0.1,
"Amount": -0.1,
"ClampAtZero": true,
"RegenType": "Additive",
"Conditions": [
{
"Id": "Gliding"
}
]
}
],
"MinValueEffects": {
"TriggerAtZero": true,
"Interactions": {
"Interactions": [
"Stamina_Bar_Flash",
"Stamina_Broken_Check",
{
"Type": "ChangeStat",
"Behaviour": "Set",
"StatModifiers": {
"StaminaRegenDelay": -0.5
}
}
]
}
},
"MaxValueEffects": {
"Interactions": {
"Interactions": [
{
"Type": "ClearEntityEffect",
"EntityEffectId": "Stamina_Broken"
}
]
}
}
}