Miscellaneous fixes to floors (light adjustments, gap fixes, texture fixes)

This commit is contained in:
Pal
2026-04-28 22:10:38 -07:00
parent bd5154a02f
commit ba95d4dbdf
32 changed files with 7351 additions and 270 deletions

View File

@@ -221,10 +221,10 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
_projectileCooldownTimer.WaitTime = 1.8f;
_projectileCooldownTimer.Timeout += ProjectileCooldown;
_immunityTimer = new Timer();
AddChild(_immunityTimer);
_immunityTimer.WaitTime = _immunityTime;
_immunityTimer.Timeout += _immunityTimer_Timeout;
_immunityTimer = new Timer();
AddChild(_immunityTimer);
_immunityTimer.WaitTime = _immunityTime;
_immunityTimer.Timeout += _immunityTimer_Timeout;
SetProcessInput(false);
SetPhysicsProcess(false);
@@ -232,9 +232,9 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
private void _immunityTimer_Timeout()
{
BriefImmunity = false;
Barrier.FadeOut();
SfxDatabase.Instance.Play(SoundEffect.Debuff);
BriefImmunity = false;
Barrier.FadeOut();
SfxDatabase.Instance.Play(SoundEffect.Debuff);
}
#endregion
@@ -287,8 +287,8 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
public void TakeDamage(AttackData damage)
{
if (BriefImmunity)
return;
if (BriefImmunity)
return;
_camera3D.AddShake(1.0f);
TakeDamageAnimationPlayer.Play("take_damage");
@@ -675,10 +675,10 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
public void EnactBriefImmunity()
{
SfxDatabase.Instance.Play(SoundEffect.Buff);
BriefImmunity = true;
Barrier.FadeIn();
_immunityTimer.Start();
SfxDatabase.Instance.Play(SoundEffect.Buff);
BriefImmunity = true;
Barrier.FadeIn();
_immunityTimer.Start();
}
private static float LeftStrafeInputVector => Godot.Input.GetActionStrength(GameInputs.StrafeLeft);