Add status effect support to Traits, change PainNumbness to be a status effect (#41646)

* Initial commit

* Review comments

* Jobify

* Prototype(effect)
This commit is contained in:
SlamBamActionman
2026-04-04 16:54:51 +02:00
committed by BarryNorfolk
parent bede43b560
commit 42e7e8fe88
15 changed files with 158 additions and 44 deletions
@@ -353,6 +353,7 @@ public sealed partial class StatusEffectsSystem
/// <summary>
/// Returns all status effects that have the specified component.
/// </summary>
/// <returns>Returns true if any entity with the specified component is found.</returns>
public bool TryEffectsWithComp<T>(EntityUid? target, [NotNullWhen(true)] out HashSet<Entity<T, StatusEffectComponent>>? effects) where T : IComponent
{
effects = null;