Formatting

This commit is contained in:
Marco 2025-04-07 16:05:48 +02:00
commit c50450f6b8

View file

@ -6,9 +6,9 @@ namespace Cirno.Scripts.Components.FSM.Player;
public partial class PlayerGrazingModule : PlayerArea2DModule
{
[Export] public BulletOwner Owner { get; private set; } = BulletOwner.Player;
[Export] public ActorResourceProvider Shield { get; private set; }
private bool _enabled = false;
public bool Enabled
@ -21,7 +21,6 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
}
}
public override void EnterState(PlayerState state)
{
Enabled = true;
@ -38,7 +37,7 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
if (bullet.BulletOwner is BulletOwner.Player) return;
GD.Print("Grazed");
bullet.Graze();
//bullet.IsGrazed = true;
Shield.CurrentResource += bullet.BulletInfo.GrazeValue;
@ -56,11 +55,9 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
public override void Process(double delta)
{
}
public override void PhysicsProcess(double delta)
{
}
}