Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supermatter copyright violation fix #646

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Content.Server/Radio/EntitySystems/RadioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void SendRadioMessage(EntityUid messageSource, string message, RadioChann
private string GetIdCardName(EntityUid senderUid)
{
var idCardTitle = Loc.GetString("chat-radio-no-id");
idCardTitle = GetIdCard(senderUid)?.LocalizedJobTitle ?? idCardTitle;
idCardTitle = GetIdCard(senderUid)?.JobTitle ?? idCardTitle;

var textInfo = CultureInfo.CurrentCulture.TextInfo;
idCardTitle = textInfo.ToTitleCase(idCardTitle);
Expand Down
13 changes: 4 additions & 9 deletions Content.Server/Singularity/EntitySystems/SingularitySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
using Content.Shared.Singularity.Components;
using Content.Shared.Singularity.EntitySystems;
using Content.Shared.Singularity.Events;
using Content.Server.Supermatter.Components;
using Robust.Server.GameStates;
using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Player;
using Robust.Shared.Timing;

namespace Content.Server.Singularity.EntitySystems;
Expand Down Expand Up @@ -36,11 +37,6 @@ public sealed class SingularitySystem : SharedSingularitySystem
/// </summary>
public const float BaseEntityEnergy = 1f;

/// <summary>
/// Whether or not the singuloo has eaten the supermatter crystal
/// </summary>
public bool HasEatenSM = false;

public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -107,7 +103,7 @@ public void SetEnergy(EntityUid uid, float value, SingularityComponent? singular
{
// Normally, a level 6 singularity requires the supermatter + 3000 energy.
// The required amount of energy has been bumped up to compensate for the lack of the supermatter.
>= 5000 when HasEatenSM => 6,
>= 5000 => 6,
>= 2000 => 5,
>= 1000 => 4,
>= 500 => 3,
Expand Down Expand Up @@ -220,8 +216,7 @@ public void OnConsumedEntity(EntityUid uid, SingularityComponent comp, ref Entit
// Don't double count singulo food
if (HasComp<SinguloFoodComponent>(args.Entity))
return;
if (HasComp<SupermatterComponent>(uid))
HasEatenSM = true;

AdjustEnergy(uid, BaseEntityEnergy, singularity: comp);
}

Expand Down
279 changes: 0 additions & 279 deletions Content.Server/Supermatter/Components/SupermatterComponent.cs

This file was deleted.

Loading
Loading