﻿-- chunkname: @scripts/settings/ability/player_abilities/abilities/ogryn_abilities.lua

local LungeTemplates = require("scripts/settings/lunge/lunge_templates")
local TalentSettings = require("scripts/settings/talent/talent_settings")
local bonebreaker_talent_settings = TalentSettings.ogryn_2
local gunlugger_talent_settings = TalentSettings.ogryn_1
local abilities = {
	ogryn_charge = {
		ability_group = "ogryn_charge",
		ability_template = "ogryn_charge",
		ability_type = "combat_ability",
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_ability_bull_rush",
		icon = "content/ui/materials/icons/abilities/combat/default",
		ability_template_tweak_data = {
			lunge_template_name = LungeTemplates.ogryn_charge.name,
		},
		cooldown = bonebreaker_talent_settings.combat_ability.cooldown,
		max_charges = bonebreaker_talent_settings.combat_ability.max_charges,
		archetypes = {
			"ogryn",
		},
	},
	ogryn_charge_cooldown_reduction = {
		ability_group = "ogryn_charge",
		ability_template = "ogryn_charge",
		ability_type = "combat_ability",
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_ability_bull_rush",
		icon = "content/ui/materials/icons/abilities/combat/default",
		ability_template_tweak_data = {
			lunge_template_name = LungeTemplates.ogryn_charge.name,
		},
		cooldown = bonebreaker_talent_settings.combat_ability_3.cooldown,
		max_charges = bonebreaker_talent_settings.combat_ability_3.max_charges,
		archetypes = {
			"ogryn",
		},
	},
	ogryn_charge_damage = {
		ability_group = "ogryn_charge",
		ability_template = "ogryn_charge",
		ability_type = "combat_ability",
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_ability_bull_rush",
		icon = "content/ui/materials/icons/abilities/combat/default",
		ability_template_tweak_data = {
			lunge_template_name = LungeTemplates.ogryn_charge_damage.name,
		},
		cooldown = bonebreaker_talent_settings.combat_ability_1.cooldown,
		max_charges = bonebreaker_talent_settings.combat_ability_1.max_charges,
		archetypes = {
			"ogryn",
		},
	},
	ogryn_charge_increased_distance = {
		ability_group = "ogryn_charge",
		ability_template = "ogryn_charge",
		ability_type = "combat_ability",
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_longer_charge",
		icon = "content/ui/materials/icons/abilities/combat/default",
		ability_template_tweak_data = {
			lunge_template_name = LungeTemplates.ogryn_charge_increased_distance.name,
		},
		cooldown = bonebreaker_talent_settings.combat_ability_2.cooldown,
		max_charges = bonebreaker_talent_settings.combat_ability_2.max_charges,
		archetypes = {
			"ogryn",
		},
	},
	ogryn_charge_bleed = {
		ability_group = "ogryn_charge",
		ability_template = "ogryn_charge",
		ability_type = "combat_ability",
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_ability_bull_rush",
		icon = "content/ui/materials/icons/abilities/combat/default",
		ability_template_tweak_data = {
			lunge_template_name = LungeTemplates.ogryn_charge_bleed.name,
		},
		cooldown = bonebreaker_talent_settings.combat_ability_3.cooldown,
		max_charges = bonebreaker_talent_settings.combat_ability_3.max_charges,
		archetypes = {
			"ogryn",
		},
	},
	ogryn_ranged_stance = {
		ability_group = "ogryn_gunlugger_stance",
		ability_template = "ogryn_gunlugger_stance",
		ability_type = "combat_ability",
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_ability_speshul_ammo",
		icon = "content/ui/materials/icons/abilities/ultimate/default",
		required_weapon_type = "ranged",
		ability_template_tweak_data = {
			buff_to_add = "ogryn_ranged_stance",
		},
		cooldown = gunlugger_talent_settings.combat_ability.cooldown,
		max_charges = gunlugger_talent_settings.combat_ability.max_charges,
		archetypes = {
			"ogryn",
		},
	},
	ogryn_taunt_shout = {
		ability_group = "ogryn_taunt_shout",
		ability_template = "ogryn_taunt_shout",
		ability_type = "combat_ability",
		cooldown = 50,
		hud_icon = "content/ui/textures/icons/abilities/hud/ogryn/ogryn_ability_taunt",
		icon = "content/ui/materials/icons/abilities/ultimate/default",
		max_charges = 1,
		ability_template_tweak_data = {
			buff_to_add = "ogryn_repeat_taunt",
		},
		archetypes = {
			"ogryn",
		},
	},
	ogryn_grenade_frag = {
		ability_type = "grenade_ability",
		hud_icon = "content/ui/materials/icons/abilities/throwables/default",
		icon = "content/ui/materials/icons/abilities/combat/default",
		inventory_item_name = "content/items/weapons/player/grenade_ogryn_frag",
		max_charges = 1,
		stat_buff = "extra_max_amount_of_grenades",
		archetypes = {
			"ogryn",
		},
	},
	ogryn_grenade_box = {
		ability_type = "grenade_ability",
		hud_icon = "content/ui/materials/icons/abilities/throwables/default",
		icon = "content/ui/materials/icons/abilities/combat/default",
		inventory_item_name = "content/items/weapons/player/grenade_box_ogryn",
		max_charges = 3,
		stat_buff = "extra_max_amount_of_grenades",
		archetypes = {
			"ogryn",
		},
	},
	ogryn_grenade_box_cluster = {
		ability_type = "grenade_ability",
		hud_icon = "content/ui/materials/icons/abilities/throwables/default",
		icon = "content/ui/materials/icons/abilities/combat/default",
		inventory_item_name = "content/items/weapons/player/grenade_box_ogryn_cluster",
		max_charges = 3,
		stat_buff = "extra_max_amount_of_grenades",
		archetypes = {
			"ogryn",
		},
	},
	ogryn_grenade_friend_rock = {
		ability_type = "grenade_ability",
		cooldown = 45,
		hud_icon = "content/ui/materials/icons/abilities/throwables/default",
		icon = "content/ui/materials/icons/abilities/combat/default",
		inventory_item_name = "content/items/weapons/player/grenade_ogryn_friend_rock",
		max_charges = 4,
		stat_buff = "extra_max_amount_of_grenades",
		archetypes = {
			"ogryn",
		},
	},
}

return abilities
