{
	"format_version": "1.19.0",
	"animation_controllers": {
		"controller.animation.goblin_peasant.root": {
			"initial_state": "idle",
			"states": {
				"idle": {
					"animations": ["idle_peasant"],
					"transitions": [
						{"walking": "q.ground_speed > 1.0 && !q.is_avoiding_mobs"},
						{"avoiding": "q.ground_speed > 1.0 && q.is_avoiding_mobs"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"walking": {
					"animations": ["walk_peasant"],
					"transitions": [
						{"idle": "q.ground_speed < 0.5"},
						{"avoiding": "q.ground_speed > 1.0 && q.is_avoiding_mobs"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"avoiding": {
					"animations": ["avoiding_peasant"],
					"transitions": [
						{"idle": "q.ground_speed < 0.5"},
						{"walking": "q.ground_speed > 1.0 && !q.is_avoiding_mobs"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				}
			}
		},
		"controller.animation.goblin_peasant.attack": {
			"states": {
				"default": {
					"transitions": [
						{"random_chance_barehand": "variable.attack_time && query.mark_variant == 0"},
						{"random_chance_weapon": "variable.attack_time && query.mark_variant > 0"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"random_chance_barehand": {
					"transitions": [
						{"hand": "math.sin(query.anim_time*3600) > 0\n"},
						{"hand_alt": "math.sin(query.anim_time*3600) < 0\n"}
					]
				},
				"random_chance_weapon": {
					"transitions": [
						{"weapon": "math.sin(query.anim_time*3600) > 0\n"},
						{"weapon_alt": "math.sin(query.anim_time*3600) < 0\n"}
					]
				},
				"hand": {
					"animations": ["punch_peasant"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"hand_alt": {
					"animations": ["punch_alt_peasant"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon": {
					"animations": ["weapon_attack_peasant"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon_alt": {
					"animations": ["weapon_attack_alt_peasant"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				}
			}
		}
	}
}