Hytale Asset ReferenceUnofficial
Versions / 0.5.0-pre.9.2 / Item / Interactions / Weapons / Mace / Deprecated / Attacks / Swings / Stamina / Mace_Swing_Stamina_Cost.json

Mace_Swing_Stamina_Cost

Server/Item/Interactions/Weapons/Mace/Deprecated/Attacks/Swings/Stamina/Mace_Swing_Stamina_Cost.json, 826 B

Fields

FieldType
$Commentstring
Typestring
Interactionsarray[2]

Source

{
  "$Comment": "Stamina cost and regeneration delay",
  "Type": "Serial",
  "Interactions": [
    {
      "Type": "ChangeStat",
      "StatModifiers": {
        "Stamina": -2
      }
    },
    {
      "$Comment": "Apply stamina regen delay based on whether stamina is positive or negative",
      "Type": "StatsCondition",
      "Lenient": true,
      "Costs": {
        "Stamina": 0.0
      },
      "Next": {
        "$Comment": "Regular stamina regen penalty",
        "Type": "ChangeStat",
        "Behaviour": "Set",
        "StatModifiers": {
          "StaminaRegenDelay": -1
        }
      },
      "Failed": {
        "$Comment": "Overdrawn stamina regen penalty",
        "Type": "ChangeStat",
        "Behaviour": "Set",
        "StatModifiers": {
          "StaminaRegenDelay": -1
        }
      }
    }
  ]
}