mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* Does not build do not PR * using blah blah blah rider hates me --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
18 lines
506 B
C#
18 lines
506 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);
|
|
}
|
|
}
|
|
}
|