package OneHandBladeAttacks
using RTDB, Attacks, AttackDirections

OneHandBladeComboAttackAbstract : Slash
{
	attackSubtype = "AttackType.ComboAttack";
	float attackWindowOpen = 0.3f;
	float attackWindowClosed = 0.5f;
	float idleTransitionTime = 1.2f;
	float blockTransitionTime = 0.7f;
	float cameraSpaceImpulse = -1.f;
	float impulseDelay = 0.f;
	float attackEffectDelay = 0.24f;
	float attackEffectDuration = 0.06f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	audioTag = "slash";
	bool incrementsCombo = true;
	float startupDuration = 0.267f;
	float activeDuration = 0.4f;
	float recoverDuration = 1.167f;
	Vector3 ikOffset = ( 0.029f, -0.059f, -0.066f );
	hitReactionSeverityMin = 0;
	hitReactionSeverityMax = 1;
}

OneHandBladeComboAttack1 : OneHandBladeComboAttackAbstract
{
	attackName = "MeleeComboAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.RightUpToLeftDown";
	audioAttackIndex = 0.0f;
}

OneHandBladeComboAttack2 : OneHandBladeComboAttackAbstract
{
	attackName = "MeleeComboAttack1";
	float startupDuration = 0.267f;
	float activeDuration = 0.167f;
	float recoverDuration = 1.4f;
	fk< AttackDirection > attackDirection = "AttackDirections.LeftToRight";
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1.27f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	fk< StatModifier >[] statModifiers += 
	[
		{
			statType = "BaseStats.PhysicalDamage";
			modifierType = "Multiplier";
			value = 1.1f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ThermalDamage";
			modifierType = "Multiplier";
			value = 1.1f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ChemicalDamage";
			modifierType = "Multiplier";
			value = 1.1f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ElectricDamage";
			modifierType = "Multiplier";
			value = 1.1f;
		} : ConstantStatModifier
	];
	audioAttackIndex = 1.0f;
}

OneHandBladeComboAttack3 : OneHandBladeComboAttackAbstract
{
	attackName = "MeleeComboAttack2";
	fk< AttackDirection > attackDirection = "AttackDirections.ThrustRightToLeft";
	audioAttackIndex = 2.0f;
}

OneHandBladeComboAttack4 : OneHandBladeComboAttackAbstract
{
	attackName = "MeleeComboAttack3";
	fk< AttackDirection > attackDirection = "AttackDirections.Center";
	audioAttackIndex = 3.0f;
}

OneHandBladeMountedComboAttackAbstract : OneHandBladeComboAttackAbstract
{
	float idleTransitionTime = 0.75f;
	float attackEffectDelay = 0.125f;
	float attackEffectDuration = 0.2f;
	float startupDuration = -1.f;
	float activeDuration = -1.f;
	float recoverDuration = -1.f;
	float trailStartDelay = 0.125f;
	float trailStopDelay = 0.325f;
	hitReactionSeverityMin = 2;
	hitReactionSeverityMax = 3;
}

OneHandBladeMountedComboAttack1 : OneHandBladeMountedComboAttackAbstract
{
	attackName = "MeleeMountedComboAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.MountedRightToLeftWide";
	audioAttackIndex = 0.0f;
}

OneHandBladeMountedComboAttack2 : OneHandBladeMountedComboAttackAbstract
{
	attackName = "MeleeMountedComboAttack1";
	float attackEffectDelay = 0.075f;
	float attackEffectDuration = 0.175f;
	float trailStartDelay = 0.075f;
	float trailStopDelay = 0.25f;
	float idleTransitionTime = 0.6f;
	fk< AttackDirection > attackDirection = "AttackDirections.MountedLeftToRightWide";
	audioAttackIndex = 1.0f;
}

OneHandBladeMountedComboAttack3 : OneHandBladeMountedComboAttackAbstract
{
	attackName = "MeleeMountedComboAttack2";
	fk< AttackDirection > attackDirection = "AttackDirections.MountedRightToLeftWide";
	audioAttackIndex = 2.0f;
}

OneHandBladeMountedComboAttack4 : OneHandBladeMountedComboAttackAbstract
{
	attackName = "MeleeMountedComboAttack3";
	float attackEffectDelay = 0.075f;
	float attackEffectDuration = 0.175f;
	float trailStartDelay = 0.075f;
	float trailStopDelay = 0.25f;
	float idleTransitionTime = 0.6f;
	fk< AttackDirection > attackDirection = "AttackDirections.MountedLeftToRightWide";
	audioAttackIndex = 3.0f;
}

OneHandBladeFinalAttackAbstract : Slash
{
	attackSubtype = "AttackType.FinalAttack";
	float attackWindowOpen = 0.37f;
	float attackWindowClosed = 1.0f;
	float idleTransitionTime = 1.2f;
	float blockTransitionTime = 0.7f;
	float cameraSpaceImpulse = 4.f;
	float impulseDelay = 0.f;
	float attackEffectDelay = 0.24f;
	float attackEffectDuration = 0.06f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1.6f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	fk< StatModifier >[] statModifiers += 
	[
		{
			statType = "BaseStats.PhysicalDamage";
			modifierType = "Multiplier";
			value = 1.25f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ThermalDamage";
			modifierType = "Multiplier";
			value = 1.25f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ChemicalDamage";
			modifierType = "Multiplier";
			value = 1.25f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ElectricDamage";
			modifierType = "Multiplier";
			value = 1.25f;
		} : ConstantStatModifier
	];
	audioTag = "slash";
	bool incrementsCombo = true;
	hitReactionSeverityMin = 0;
	hitReactionSeverityMax = 1;
}

OneHandBladeFinalAttack1 : OneHandBladeFinalAttackAbstract
{
	attackName = "MeleeFinalAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.RightToLeft";
	audioAttackIndex = 0.0f;
}

OneHandBladeFinalAttack2 : OneHandBladeFinalAttackAbstract
{
	attackName = "MeleeFinalAttack1";
	fk< AttackDirection > attackDirection = "AttackDirections.RightToLeft";
	audioAttackIndex = 1.0f;
}

OneHandBladeFinalAttack3 : OneHandBladeFinalAttackAbstract
{
	attackName = "MeleeFinalAttack2";
	fk< AttackDirection > attackDirection = "AttackDirections.RightToLeft";
	audioAttackIndex = 2.0f;
}

OneHandBladeMountedFinalAttackAbstract : OneHandBladeFinalAttackAbstract
{
	float idleTransitionTime = 0.6f;
	float attackEffectDelay = 0.1f;
	float attackEffectDuration = 0.175f;
	float startupDuration = -1.f;
	float activeDuration = -1.f;
	float recoverDuration = -1.f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.275f;
	hitReactionSeverityMin = 2;
	hitReactionSeverityMax = 3;
}

OneHandBladeMountedFinalAttack1 : OneHandBladeMountedFinalAttackAbstract
{
	attackName = "MeleeMountedFinalAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.MountedRightToLeftWide";
	audioAttackIndex = 0.0f;
}

OneHandBladeMountedFinalAttack2 : OneHandBladeMountedFinalAttackAbstract
{
	attackName = "MeleeMountedFinalAttack1";
	float attackEffectDelay = 0.104f;
	float trailStartDelay = 0.104f;
	float trailStopDelay = 0.215f;
	float idleTransitionTime = 0.5f;
	fk< AttackDirection > attackDirection = "AttackDirections.MountedLeftToRightWide";
	audioAttackIndex = 1.0f;
}

OneHandBladeMountedFinalAttack3 : OneHandBladeMountedFinalAttackAbstract
{
	attackName = "MeleeMountedFinalAttack2";
	fk< AttackDirection > attackDirection = "AttackDirections.MountedRightToLeftWide";
	audioAttackIndex = 2.0f;
}

OneHandBladeStrongAttackAbstract : StrongSlash
{
	float attackWindowOpen = 0.37f;
	float attackWindowClosed = 0.7f;
	float idleTransitionTime = 1.2f;
	float blockTransitionTime = 0.7f;
	float cameraSpaceImpulse = 4.f;
	float impulseDelay = 0.f;
	float attackEffectDelay = 0.29f;
	float attackEffectDuration = 0.06f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	bool hasDeflectAnim = false;
	bool hasHitAnim = true;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 2f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	audioTag = "stab";
	bool incrementsCombo = true;
	bool enableAdjustingPlayerPositionToTarget = true;
	hitReactionSeverityMin = 0;
	hitReactionSeverityMax = 2;
}

OneHandBladeStrongAttack1 : OneHandBladeStrongAttackAbstract
{
	attackName = "MeleeStrongAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.UpToDown";
	audioAttackIndex = 0.0f;
}

OneHandBladeStrongAttack2 : OneHandBladeStrongAttackAbstract
{
	attackName = "MeleeStrongAttack1";
	fk< AttackDirection > attackDirection = "AttackDirections.LeftDownToRightUp";
	audioAttackIndex = 1.0f;
}

OneHandBladeStrongAttack3 : OneHandBladeStrongAttackAbstract
{
	attackName = "MeleeStrongAttack2";
	fk< AttackDirection > attackDirection = "AttackDirections.RightToLeft";
	audioAttackIndex = 2.0f;
}

OneHandBladeMountedStrongAttackAbstract : OneHandBladeStrongAttackAbstract
{
	float idleTransitionTime = 0.6f;
	float attackEffectDelay = 0.1f;
	float attackEffectDuration = 0.15f;
	float startupDuration = -1.f;
	float activeDuration = -1.f;
	float recoverDuration = -1.f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.25f;
	bool enableAdjustingPlayerPositionToTarget = false;
	hitReactionSeverityMin = 2;
	hitReactionSeverityMax = 3;
}

OneHandBladeMountedStrongAttack1 : OneHandBladeMountedStrongAttackAbstract
{
	attackName = "MeleeMountedStrongAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.MountedRightToLeftWide";
	audioAttackIndex = 0.0f;
}

OneHandBladeMountedStrongAttack2 : OneHandBladeMountedStrongAttackAbstract
{
	attackName = "MeleeMountedStrongAttack1";
	float attackEffectDelay = 0.05f;
	float trailStartDelay = 0.05f;
	float trailStopDelay = 0.2f;
	float idleTransitionTime = 0.5f;
	fk< AttackDirection > attackDirection = "AttackDirections.MountedLeftToRightWide";
	audioAttackIndex = 1.0f;
}

OneHandBladeMountedStrongAttack3 : OneHandBladeMountedStrongAttackAbstract
{
	attackName = "MeleeMountedStrongAttack2";
	fk< AttackDirection > attackDirection = "AttackDirections.MountedRightToLeftWide";
	audioAttackIndex = 2.0f;
}

OneHandBladeBlockAttack : OneHandBladeComboAttackAbstract
{
	attackSubtype = "AttackType.BlockAttack";
	attackName = "MeleeBlockAttack0";
	float attackWindowOpen = 0.37f;
	float attackWindowClosed = 0.7f;
	float idleTransitionTime = 1.0f;
	float blockTransitionTime = 1.0f;
	fk< AttackDirection > attackDirection = "AttackDirections.LeftToRight";
	bool dontScaleWithAttackSpeed = false;
	bool hasDeflectAnim = false;
	bool hasHitAnim = false;
	bool incrementsCombo = false;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	audioAttackIndex = 0.0f;
	float forwardImpulse = -11.f;
	float upImpulse = 2.f;
	float impulseDelay = 0.3f;
	fk< StatModifier >[] statModifiers += 
	[
		{
			statType = "BaseStats.PhysicalDamage";
			modifierType = "Multiplier";
			value = 0.75f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ThermalDamage";
			modifierType = "Multiplier";
			value = 0.75f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ChemicalDamage";
			modifierType = "Multiplier";
			value = 0.75f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ElectricDamage";
			modifierType = "Multiplier";
			value = 0.75f;
		} : ConstantStatModifier
	];
}

OneHandBladeSafeAttack : OneHandBladeComboAttackAbstract
{
	attackSubtype = "AttackType.SafeAttack";
	attackName = "MeleeSafeAttack0";
	fk< AttackDirection > attackDirection = "AttackDirections.LeftToRight";
	bool dontScaleWithAttackSpeed = false;
	bool hasDeflectAnim = false;
	bool hasHitAnim = false;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	audioAttackIndex = 0.0f;
	bool incrementsCombo = false;
}

OneHandBladeDeflectAttack : OneHandBladeComboAttackAbstract
{
	attackSubtype = "AttackType.DeflectAttack";
	attackName = "MeleeDeflectAttack0";
	float attackWindowOpen = 0.37f;
	float attackWindowClosed = 0.5f;
	float idleTransitionTime = 0.5f;
	float blockTransitionTime = 0.5f;
	float addedImpulse = 5.f;
	float addedImpulseDelay = 0.33f;
	float minimumDistanceToTargetToAddImpulse = 4.f;
	fk< AttackDirection > attackDirection = "AttackDirections.LeftToRight";
	float attackEffectDelay = 0.24f;
	float attackEffectDuration = 0.06f;
	float trailStartDelay = 0.2f;
	float trailStopDelay = 0.6f;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1.33f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	bool disableAdjustingPlayerPositionToTarget = true;
	bool hasHitAnim = false;
	hitReactionSeverityMin = 2;
	hitReactionSeverityMax = 2;
}

OneHandBladeSprintAttack : Slash
{
	attackSubtype = "AttackType.SprintAttack";
	attackName = "MeleeSprintAttack0";
	float attackWindowOpen = 0.3f;
	float attackWindowClosed = 0.5f;
	float idleTransitionTime = 1.2f;
	float blockTransitionTime = 0.5f;
	float cameraSpaceImpulse = 4.f;
	float impulseDelay = 0.f;
	fk< AttackDirection > attackDirection = "AttackDirections.RightDownToLeftUp";
	float attackEffectDelay = 0.2f;
	float attackEffectDuration = 0.06f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1.33f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.DashAttackStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	audioTag = "slash";
	audioAttackIndex = 0.0f;
	bool incrementsCombo = true;
	hitReactionSeverityMin = 0;
	hitReactionSeverityMax = 1;
}

OneHandBladeJumpAttack : Slash
{
	attackSubtype = "AttackType.JumpAttack";
	attackName = "MeleeJumpAttack0";
	float attackWindowOpen = 0.3f;
	float attackWindowClosed = 0.5f;
	float idleTransitionTime = 0.5f;
	float blockTransitionTime = 0.5f;
	float cameraSpaceImpulse = -1.f;
	float impulseDelay = 0.f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	fk< AttackDirection > attackDirection = "AttackDirections.UpToDown";
	float attackEffectDelay = 0.14f;
	float attackEffectDuration = 0.06f;
	bool incrementsCombo = false;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1.33f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	audioTag = "slash";
	audioAttackIndex = 0.0f;
	hitReactionSeverityMin = 0;
	hitReactionSeverityMax = 2;
}

OneHandBladeCrouchAttack : Slash
{
	attackSubtype = "AttackType.CrouchAttack";
	attackName = "MeleeCrouchAttack0";
	float attackWindowOpen = 0.3f;
	float attackWindowClosed = 1.0f;
	float idleTransitionTime = 1.5f;
	float blockTransitionTime = 1.0f;
	float cameraSpaceImpulse = 4.f;
	float impulseDelay = 0.f;
	float trailStartDelay = 0.1f;
	float trailStopDelay = 0.4f;
	fk< AttackDirection > attackDirection = "AttackDirections.LeftDownToRightUp";
	float attackEffectDelay = 0.2f;
	float attackEffectDuration = 0.06f;
	staminaCost = 
	[
		{
			statType = "BaseStats.Stamina";
			modifierType = "Additive";
			refObject = "Player";
			refStat = "BaseStats.BaseMeleeAttackStaminaCost";
			opSymbol = "*";
			value = 1.33f;
		} : CombinedStatModifier, 
		{
			statType = "BaseStats.Stamina";
			modifierType = "AdditiveMultiplier";
			refObject = "Player";
			refStat = "BaseStats.OneHandBladeStaminaCostReduction";
			opSymbol = "*";
			value = -1f;
		} : CombinedStatModifier
	];
	audioTag = "slash";
	audioAttackIndex = 0.0f;
	bool incrementsCombo = false;
	hitReactionSeverityMin = 0;
	hitReactionSeverityMax = 1;
}

NPCQuickAttack : Slash
{
	attackName = "NPCQuickAttack";
}

NPCQuickAttackStagger : Slash
{
	attackName = "NPCQuickAttackStagger";
	fk< StatusEffectAttackData >[] statusEffects = 
	[
		{
			statusEffect = "BaseStatusEffect.Stun";
			resistPool = "BaseStatPools.StunTrigger";
			applyImmediately = true;
		}
	];
}

NPCStrongAttack : StrongSlash
{
	attackName = "NPCStrongAttack";
}

NPCParryEffect : Attack_Melee
{
	attackName = "NPCParryEffect";
	attackType = "AttackType.Melee";
	effectName = "melee";
	effectTag = "swing";
	fk< StatusEffectAttackData >[] statusEffects = 
	[
		{
			statusEffect = "BaseStatusEffect.Stun";
			resistPool = "BaseStatPools.StunTrigger";
			applyImmediately = true;
		}
	];
}

