{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.dungeon_lever.interacted": {
			"states": {
				"default": {
					"transitions": [
						{ "interacted": "q.property('ldz:interacted') && !q.property('ldz:triggered')" }
					]
				},
				"interacted": {
					"on_entry": [
						"/function dungeon_lever/verify_trigger",
						"@s set_interacted_to_false"
					],
					"transitions": [
						{ "default": "true" }
					]
				}
			}
		},

		"controller.animation.dungeon_lever.powered_state": {
			"states": {
				"default": {
					"transitions": [
						{ "off": "q.property('ldz:powered') == false" },
						{ "on":  "q.property('ldz:powered') == true" }
					]
				},
				"off": {
					"on_entry": [
						"@s set_triggered_to_false"
					],
					"transitions": [
						{ "turn_on": "q.property('ldz:triggered') == true" }
					]
				},
				"turn_on": {
					"on_entry": [
						"@s set_powered_to_true",
						"/function dungeon_lever/activated"
					],
					"animations": [
						"animation_delay"
					],
					"transitions": [
						{ "on": "q.all_animations_finished" }
					]
				},
				"on": {
					"on_entry": [
						"@s set_triggered_to_false"
					],
					"transitions": [
						{ "turn_off": "q.property('ldz:triggered') == true" }
					]
				},
				"turn_off": {
					"on_entry": [
						"@s set_powered_to_false",
						"/function dungeon_lever/deactivated"
					],
					"animations": [
						"animation_delay"
					],
					"transitions": [
						{ "off": "q.all_animations_finished" }
					]
				}
			}
		}
	}
}