{
	"type": "origins:multiple",
	"cooldown": {
		"type": "origins:resource",
		"min": 30,
		"max": 60,
		"start_value": 60
	},
	"charge": {
		"type": "origins:resource",
		"min": 0,
		"max": 60,
		"start_value": 0,
		"hud_render": {
			"inverted": true,
			"sprite_location": "origins:textures/gui/community/spiderkolo/resource_bar_03.png",
			"bar_index": 6,
			"icon_index": 1,
			"order": 0,
			"condition": {
				"type": "origins:resource",
				"resource": "drpg:armor_restriction",
				"comparison": "==",
				"compare_to": 0
			}
		}
	},
	"locked": {
		"type": "origins:resource",
		"min": 0,
		"max": 7,
		"start_value": 7,
		"hud_render": {
			"sprite_location": "origins:textures/gui/community/spiderkolo/resource_bar_01.png",
			"bar_index": 23,
			"order": 0,
			"condition": {
				"type": "origins:resource",
				"resource": "drpg:armor_restriction",
				"comparison": ">",
				"compare_to": 0
			}
		}
	},
	"countdown": {
		"type": "origins:action_over_time",
		"entity_action": {
			"type": "origins:change_resource",
			"resource": "drpg:cleric_channel_divinity_charge",
			"change": -1
		},
		"interval": 20,
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:armor_restriction",
			"comparison": "==",
			"compare_to": 0
		}
	},
	"restore": {
		"type": "origins:action_on_wake_up",
		"entity_action": {
			"type": "origins:side",
			"action": {
				"type": "origins:change_resource",
				"resource": "drpg:cleric_channel_divinity_charge",
				"operation": "set",
				"change": 0
			},
			"side": "server"
		}
	},
	"reset_on_hit": {
		"type": "origins:action_when_damage_taken",
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 0,
				"resource": "drpg:cleric_channel_divinity_cooldown"
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:cleric_channel_divinity_charge",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:or",
					"conditions": [
						{
							"type": "origins:and",
							"conditions": [
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_cooldown",
									"comparison": "<=",
									"compare_to": 30
								},
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_charge",
									"comparison": "<",
									"compare_to": 30
								}
							]
						},
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_cooldown",
							"comparison": ">",
							"compare_to": 30
						}
					]
				}
			]
		}
	},
	"reset_on_hit_secondary": {
		"type": "origins:action_when_damage_taken",
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 60
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:cleric_channel_divinity_charge",
			"comparison": ">",
			"compare_to": 30
		}
	},
	"reset_on_attack": {
		"type": "origins:active_self",
		"key": {
			"key": "key.attack",
			"continuous": true
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 0,
				"resource": "drpg:cleric_channel_divinity_cooldown"
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:cleric_channel_divinity_charge",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:or",
					"conditions": [
						{
							"type": "origins:and",
							"conditions": [
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_cooldown",
									"comparison": "<=",
									"compare_to": 30
								},
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_charge",
									"comparison": "<",
									"compare_to": 30
								}
							]
						},
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_cooldown",
							"comparison": ">",
							"compare_to": 30
						}
					]
				}
			]
		}
	},
	"reset_on_attack_secondary": {
		"type": "origins:active_self",
		"key": {
			"key": "key.attack",
			"continuous": true
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 60
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:cleric_channel_divinity_charge",
			"comparison": ">",
			"compare_to": 30
		}
	},
	"reset_on_sprint": {
		"type": "origins:active_self",
		"key": {
			"key": "key.sprint",
			"continuous": true
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 0,
				"resource": "drpg:cleric_channel_divinity_cooldown"
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:cleric_channel_divinity_charge",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:or",
					"conditions": [
						{
							"type": "origins:and",
							"conditions": [
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_cooldown",
									"comparison": "<=",
									"compare_to": 30
								},
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_charge",
									"comparison": "<",
									"compare_to": 30
								}
							]
						},
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_cooldown",
							"comparison": ">",
							"compare_to": 30
						}
					]
				}
			]
		}
	},
	"reset_on_sprint_secondary": {
		"type": "origins:active_self",
		"key": {
			"key": "key.sprint",
			"continuous": true
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 60
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:cleric_channel_divinity_charge",
			"comparison": ">",
			"compare_to": 30
		}
	},
	"reset_on_jump": {
		"type": "origins:active_self",
		"key": {
			"key": "key.jump",
			"continuous": true
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 0,
				"resource": "drpg:cleric_channel_divinity_cooldown"
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:cleric_channel_divinity_charge",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:or",
					"conditions": [
						{
							"type": "origins:and",
							"conditions": [
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_cooldown",
									"comparison": "<=",
									"compare_to": 30
								},
								{
									"type": "origins:resource",
									"resource": "drpg:cleric_channel_divinity_charge",
									"comparison": "<",
									"compare_to": 30
								}
							]
						},
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_cooldown",
							"comparison": ">",
							"compare_to": 30
						}
					]
				}
			]
		}
	},
	"reset_on_jump_secondary": {
		"type": "origins:active_self",
		"key": {
			"key": "key.jump",
			"continuous": true
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 60
			},
			"resource": "drpg:cleric_channel_divinity_charge"
		},
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:cleric_channel_divinity_charge",
			"comparison": ">",
			"compare_to": 30
		}
	}
}