empowered action as a forge ability
This commit is contained in:
@@ -409,6 +409,8 @@ public partial class PlayerController : CharacterBody3D,
|
||||
|
||||
private AbilityHandle? _empoweredActionHandle;
|
||||
|
||||
[Export] public REmpoweredAction EmpoweredAction = null!;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
LoadSettings();
|
||||
@@ -439,11 +441,10 @@ public partial class PlayerController : CharacterBody3D,
|
||||
Abilities = new(this);
|
||||
Events = new();
|
||||
|
||||
var empoweredAction = new EmpoweredAction(forgeManager.TagsManager);
|
||||
var empoweredActionData = new AbilityData(
|
||||
name: "Empowered Action",
|
||||
costEffect: empoweredAction.EmpoweredActionCostEffect,
|
||||
cooldownEffects: [empoweredAction.EmpoweredActionCooldown],
|
||||
costEffect: EmpoweredAction.CostEffect(),
|
||||
cooldownEffects: [EmpoweredAction.CooldownEffect(forgeManager.TagsManager)],
|
||||
instancingPolicy: AbilityInstancingPolicy.PerEntity,
|
||||
behaviorFactory: () => new EmpoweredActionBehavior());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user