{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.anteater": {
      "initial_state": "default",
      "states": {
        "default": {
          "animations": [
            "idle",
            { "licking": "q.property('silverlabs_nat:is_licking')" }
          ],

          "transitions": [
            { "walk": "v.is_moving && q.is_on_ground" },
            { "digging_item": "v.is_digging_item" },
            { "begging": "v.is_begging && !v.is_digging_item" },
            { "defensive_mode": "v.on_defensive_mode" },
            { "sit": "q.is_sitting" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "walk": {
          "animations": [
            "walk",
            { "licking": "q.property('silverlabs_nat:is_licking')" }
          ],

          "transitions": [
            { "default": "!v.is_moving" },
            { "digging_item": "v.is_digging_item" },
            { "defensive_mode": "v.on_defensive_mode" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "digging_item": {
          "animations": ["digging"],
          "transitions": [
            { "default": "!v.is_digging_item" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "begging": {
          "animations": ["beg"],
          "transitions": [
            { "default": "!v.is_begging" },
            { "digging_item": "v.is_digging_item" },
            { "defensive_mode": "v.on_defensive_mode" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "defensive_mode": {
          "animations": ["defensive"],
          "transitions": [
            { "default": "!v.on_defensive_mode" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },
        "sit": {
          "animations": ["sit"],
          "transitions": [
            { "default": "!q.is_sitting" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        }
      }
    },

    "controller.animation.silverlabs_nat.anteater.attack": {
      "initial_state": "default",
      "states": {
        "default": {
          "on_entry": [
            "v.attack_type = Math.random_integer(0, 2);"
          ],

          "transitions": [
            { "punch_left": "q.is_delayed_attacking && v.attack_type == 0" },
            { "punch_right": "q.is_delayed_attacking && v.attack_type == 1" },
            { "slam": "q.is_delayed_attacking && v.attack_type == 2" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "punch_left": {
          "animations": ["punch_left"],
          "transitions": [
            { "default": "q.all_animations_finished" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "punch_right": {
          "animations": ["punch_right"],
          "transitions": [
            { "default": "q.all_animations_finished" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        },

        "slam": {
          "animations": ["slam"],
          "transitions": [
            { "default": "q.all_animations_finished" }
          ],

          "blend_via_shortest_path": true,
          "blend_transition": 0.2
        }
      }
    }
  }
}
