mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
17 lines
503 B
C#
17 lines
503 B
C#
using Content.Shared.Damage.Components;
|
|
|
|
namespace Content.Shared.Damage.Systems;
|
|
|
|
public sealed partial class DamageableSystem
|
|
{
|
|
/// <summary>
|
|
/// Applies damage to all entities to see how expensive it is to deal damage.
|
|
/// </summary>
|
|
public void ApplyDamageToAllEntities(List<Entity<DamageableComponent>> damageables, DamageSpecifier damage)
|
|
{
|
|
foreach (var (uid, damageable) in damageables)
|
|
{
|
|
ChangeDamage((uid, damageable), damage);
|
|
}
|
|
}
|
|
}
|