mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 09:43:47 +00:00
Formatting
This commit is contained in:
parent
2a016fd30c
commit
c50450f6b8
1 changed files with 3 additions and 6 deletions
|
|
@ -6,9 +6,9 @@ namespace Cirno.Scripts.Components.FSM.Player;
|
||||||
public partial class PlayerGrazingModule : PlayerArea2DModule
|
public partial class PlayerGrazingModule : PlayerArea2DModule
|
||||||
{
|
{
|
||||||
[Export] public BulletOwner Owner { get; private set; } = BulletOwner.Player;
|
[Export] public BulletOwner Owner { get; private set; } = BulletOwner.Player;
|
||||||
|
|
||||||
[Export] public ActorResourceProvider Shield { get; private set; }
|
[Export] public ActorResourceProvider Shield { get; private set; }
|
||||||
|
|
||||||
private bool _enabled = false;
|
private bool _enabled = false;
|
||||||
|
|
||||||
public bool Enabled
|
public bool Enabled
|
||||||
|
|
@ -21,7 +21,6 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override void EnterState(PlayerState state)
|
public override void EnterState(PlayerState state)
|
||||||
{
|
{
|
||||||
Enabled = true;
|
Enabled = true;
|
||||||
|
|
@ -38,7 +37,7 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
|
||||||
if (bullet.BulletOwner is BulletOwner.Player) return;
|
if (bullet.BulletOwner is BulletOwner.Player) return;
|
||||||
|
|
||||||
GD.Print("Grazed");
|
GD.Print("Grazed");
|
||||||
|
|
||||||
bullet.Graze();
|
bullet.Graze();
|
||||||
//bullet.IsGrazed = true;
|
//bullet.IsGrazed = true;
|
||||||
Shield.CurrentResource += bullet.BulletInfo.GrazeValue;
|
Shield.CurrentResource += bullet.BulletInfo.GrazeValue;
|
||||||
|
|
@ -56,11 +55,9 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
|
||||||
|
|
||||||
public override void Process(double delta)
|
public override void Process(double delta)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PhysicsProcess(double delta)
|
public override void PhysicsProcess(double delta)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue