Add buff/debuff/heal/rust shaders for enemies and throwing glue jar immobilization
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user