This commit is contained in:
CortexCore
2023-12-16 23:30:08 +08:00
parent 78216a3d47
commit 961ae8feb4
33 changed files with 369 additions and 148 deletions

View File

@@ -57,7 +57,7 @@ namespace BITFALL.Player.Survival
if (_health.IsAlive is false) return;
foreach (var x in Elements)
{
x.Value -= deltaTime;
x.Value -= x.Decay * deltaTime;
if (x.Value <= 0)
{
_damageService.Execute(new DamageMessage()