using Content.Shared.Radiation.Components; namespace Content.Shared.Radiation.Systems; public abstract partial class SharedRadiationSystem : EntitySystem { [Dependency] protected EntityQuery SourceQuery = default!; /// /// Sets the intensity of a to the passed intensity. /// /// Radiation source we're attempting to update /// Intensity we're setting the source to. public void SetIntensity(Entity entity, float intensity) { if (!SourceQuery.Resolve(entity, ref entity.Comp, false)) return; entity.Comp.Intensity = intensity; } }