Skip to content

Commit

Permalink
Remove Finket's grubby mitts from comments that aren't hers
Browse files Browse the repository at this point in the history
Co-authored-by: DEATHB4DEFEAT <[email protected]>
  • Loading branch information
Finket and DEATHB4DEFEAT authored Mar 6, 2024
1 parent 58e1f23 commit bb5d848
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Content.Client/Chat/Managers/ChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal sealed class ChatManager : IChatManager
[Dependency] private readonly IEntitySystemManager _systems = default!;

private ISawmill _sawmill = default!;
public event Action? PermissionsUpdated; //Nyano - Summary: need to be able to update perms for new psionics
public event Action? PermissionsUpdated; //Nyano - Summary: need to be able to update perms for new psionics.
public void Initialize()
{
_sawmill = Logger.GetSawmill("chat");
Expand Down Expand Up @@ -67,7 +67,7 @@ public void SendMessage(string text, ChatSelectChannel channel)
_consoleHost.ExecuteCommand($"whisper \"{CommandParsing.Escape(str)}\"");
break;

//Nyano - Summary: sends the command for telepath communication
//Nyano - Summary: sends the command for telepath communication.
case ChatSelectChannel.Telepathic:
_consoleHost.ExecuteCommand($"tsay \"{CommandParsing.Escape(str)}\"");
break;
Expand All @@ -81,7 +81,7 @@ public void SendMessage(string text, ChatSelectChannel channel)
throw new ArgumentOutOfRangeException(nameof(channel), channel, null);
}
}
//Nyano - Summary: fires off the update permissions script
//Nyano - Summary: fires off the update permissions script.
public void UpdatePermissions()
{
PermissionsUpdated?.Invoke();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public override void Update(float frameTime)

const float min = 0.45f;
const float max = 0.75f;
// TODO This math doesn't match the comments, figure out which is correct
comp.TintIntensity = Math.Clamp(min + (comp.PowerLevel / comp.PowerLevelMax) / 3, min, max);

UpdateShader(comp.TintColor, comp.TintIntensity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace Content.Server.SimpleStation14.Chat
{
/// <summary>
/// Extensions for Parkstation's chat stuff
/// Extensions for Parkstation's chat stuff
/// </summary>
public sealed class SimpleStationChatSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public override void Update(float frameTime)
// Not a light we should affect
if (!_entity.TryGetComponent(light, out ShadowkinLightComponent? shadowkinLight))
continue;

// Not powered, undo changes
if (_entity.TryGetComponent(light, out PoweredLightComponent? powered) && !powered.On)
{
Expand All @@ -98,6 +99,7 @@ public override void Update(float frameTime)
shadowkin.DarkenedLights.Remove(light);
continue;
}

// 3% chance to remove the attached entity so it can become another Shadowkin's light
if (shadowkinLight.AttachedEntity == uid)
{
Expand Down

0 comments on commit bb5d848

Please sign in to comment.