{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.shapescape_mb.golem_boss.general": {
			"states": {
				"default": {
					"animations": ["idle_rocks"],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"walk": "q.ground_speed > 0.1 && !q.is_delayed_attacking && !q.is_charged"
						},
						{
							"melee": "q.variant == 1 && q.is_delayed_attacking"
						},
						{
							"range": "q.variant == 6 && q.is_charged"
						},
						{
							"aoe": "q.variant == 3"
						}
					],
					"blend_transition": 0.1
				},
				"walk": {
					"animations": ["idle_rocks", "walk"],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"melee": "q.variant == 1 && q.is_delayed_attacking"
						},
						{
							"range": "q.variant == 6 && q.is_charged"
						},
						{
							"aoe": "q.variant == 3"
						},
						{
							"default": "q.ground_speed < 0.1"
						}
					],
					"blend_transition": 0.2
				},
				"melee": {
					"animations": ["ac.punch_attack"],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"walk": "q.all_animations_finished && q.ground_speed > 0.1 && !q.is_delayed_attacking && !q.is_charged"
						},
						{
							"range": "q.all_animations_finished && q.variant == 6 && q.is_charged"
						},
						{
							"aoe": "q.all_animations_finished && q.variant == 3"
						},
						{
							"default": "q.all_animations_finished && q.ground_speed < 0.1 && q.variant !=2"
						}
					],
					"blend_transition": 0.2
				},
				"range": {
					"animations": [
						"attack_shooting" // make the beam larger, player aiming and hitbox is not accurate
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"walk": "q.all_animations_finished && q.ground_speed > 0.1 && !q.is_delayed_attacking && !q.is_charged"
						},
						{
							"melee": "q.variant == 1 && q.is_delayed_attacking"
						},
						{
							"aoe": "q.all_animations_finished && q.variant == 3"
						},
						{
							"default": "q.all_animations_finished && q.ground_speed < 0.1"
						}
					],
					"blend_transition": 0.2
				},
				"aoe": {
					"animations": [
						"attack_spinning_rotation",
						{ "attack_spinning_position": "math.clamp(q.anim_time/1.5, 2, 4)" }
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"walk": "q.all_animations_finished && q.ground_speed > 0.1 && !q.is_delayed_attacking && !q.is_charged"
						},
						{
							"melee": "q.variant == 1 && q.is_delayed_attacking"
						},
						{
							"range": "q.all_animations_finished && q.variant == 6 && q.is_charged"
						},
						{
							"default": "q.all_animations_finished && q.ground_speed < 0.1"
						}
					],
					"blend_transition": 0.25
				},
				"death": {
					"animations": ["death"]
				}
			}
		},
		"controller.animation.shapescape_mb.golem_boss.punch_attack": {
			"states": {
				"default": {
					"transitions": [
						{
							"prep": "q.variant == 1 && q.is_delayed_attacking"
						}
					],
					"blend_transition": 0.1
				},
				"prep": {
					"animations": ["punch_start"],
					"transitions": [
						{
							"exec": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.1
				},
				"exec": {
					"animations": ["attack_punch"],
					"transitions": [
						{
							"end": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.1
				},
				"end": {
					"animations": ["punch_end"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.1
				}
			}
		}
	}
}
