From d25a2def7c6d1a58a1926c8438b2f164f7e47703 Mon Sep 17 00:00:00 2001 From: Lazzi0706 Date: Mon, 1 Jan 2024 15:24:38 +0700 Subject: [PATCH] Revert "bruh" This reverts commit addb77b5c98b97fba0620d30a3e2eb661647a2b9. --- Content.Server/Ghost/GhostSystem.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Content.Server/Ghost/GhostSystem.cs b/Content.Server/Ghost/GhostSystem.cs index ab47319eb91f..acdeca9af009 100644 --- a/Content.Server/Ghost/GhostSystem.cs +++ b/Content.Server/Ghost/GhostSystem.cs @@ -22,7 +22,6 @@ using Robust.Shared.Physics.Components; using Robust.Shared.Physics.Systems; using Robust.Shared.Player; -using Robust.Shared.Random; using Robust.Shared.Timing; namespace Content.Server.Ghost @@ -43,7 +42,6 @@ public sealed class GhostSystem : SharedGhostSystem [Dependency] private readonly GameTicker _ticker = default!; [Dependency] private readonly TransformSystem _transformSystem = default!; [Dependency] private readonly VisibilitySystem _visibilitySystem = default!; - private static readonly Random rand = new Random(); public override void Initialize() { @@ -157,18 +155,6 @@ private void OnGhostStartup(EntityUid uid, GhostComponent component, ComponentSt component.TimeOfDeath = time; } - // SS220 - Start of ghost color randomizer submodule - private void SetRandomGhostColor(GhostComponent component) - { - component.color.R = rand.Next(0, 255); - component.color.G = rand.Next(0, 255); - component.color.B = rand.Next(0, 255); - - var ev = new AfterAutoHandleStateEvent(); - RaiseLocalEvent(component.Owner, ref ev); - } - // SS220 - End of ghost color randomizer submodule - private void OnGhostShutdown(EntityUid uid, GhostComponent component, ComponentShutdown args) { // Perf: If the entity is deleting itself, no reason to change these back. @@ -213,8 +199,6 @@ private void OnMapInit(EntityUid uid, GhostComponent component, MapInitEvent arg _actions.AddAction(uid, ref component.ToggleLightingActionEntity, component.ToggleLightingAction); _actions.AddAction(uid, ref component.ToggleFoVActionEntity, component.ToggleFoVAction); _actions.AddAction(uid, ref component.ToggleGhostsActionEntity, component.ToggleGhostsAction); - - SetRandomGhostColor(component); // SS220 - Ghost color randomizer } private void OnGhostExamine(EntityUid uid, GhostComponent component, ExaminedEvent args)