Add buff/debuff/heal/rust shaders for enemies and throwing glue jar immobilization

This commit is contained in:
2026-06-06 13:54:47 -07:00
parent 7b4fe37dd5
commit 543a967fd5
19 changed files with 358 additions and 114 deletions
@@ -84,6 +84,7 @@ public class EffectService
return;
currentRoom.EnemiesInRoom.ForEach(e => e.HealthComponent.SetCurrentHealth(e.HealthComponent.MaximumHP.Value));
currentRoom.EnemiesInRoom.ForEach(e => e.OnHealed());
_player.HealthComponent.SetCurrentHealth(_player.HealthComponent.MaximumHP.Value);
SfxDatabase.Instance.Play(SoundEffect.HealHP);
}
@@ -225,6 +226,11 @@ public class EffectService
enemy.MoveEnemyToNewRoom(randomRoom);
}
public void DisableEnemyMovement(IEnemy enemy)
{
enemy.SetEnemySpeedByMultiplier(0);
}
public void CloneEnemy(IEnemy enemy)
{
var enemyPosition = new Vector3(enemy.GlobalPosition.X, 0f, enemy.GlobalPosition.Z);