Skip to content

Commit

Permalink
Revert "bruh"
Browse files Browse the repository at this point in the history
This reverts commit addb77b.
  • Loading branch information
Lazzi0706 committed Jan 1, 2024
1 parent 5c4d6b6 commit d25a2de
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Content.Server/Ghost/GhostSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
{
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d25a2de

Please sign in to comment.