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:
Leon Friedrich
2022-03-30 18:57:35 +13:00
committed by GitHub
parent 5c7a1534db
commit 4bc73ac591
43 changed files with 365 additions and 99 deletions

View File

@@ -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();
}
}