Make flashlights, atmos hardsuit, and RGB use the new layer features (#6253)
* Make flashlights, atmos hardsuit, and RGB use the new layer features * avoid self-conflict * fix rgb not updating on add * cleanup * Update Content.Client/Light/RgbLightControllerSystem.cs Co-authored-by: mirrorcult <lunarautomaton6@gmail.com> * cleanup diff Co-authored-by: mirrorcult <lunarautomaton6@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Shared.Light.Component;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Content.Shared.Light;
|
||||
@@ -33,7 +34,7 @@ public abstract class SharedRgbLightControllerSystem : EntitySystem
|
||||
if (!Resolve(uid, ref rgb))
|
||||
return;
|
||||
|
||||
rgb.CycleRate = rate;
|
||||
rgb.CycleRate = Math.Clamp(0.01f, rate, 1); // lets not give people seizures
|
||||
rgb.Dirty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user