From 4577f388ae2e03021e95403433dcf0a837e4b4bc Mon Sep 17 00:00:00 2001 From: Finket Date: Mon, 6 Nov 2023 17:42:26 +0200 Subject: [PATCH] Fix other old refactor conflicts --- Content.Server/SimpleStation14/Chat/ESayCommand.cs | 2 +- .../Shadowkin/Events/ShadowkinEvents.Powers.cs | 2 +- .../Shadowkin/Systems/ShadowkinPowerSystem.Darken.cs | 4 ++-- .../Shadowkin/Systems/ShadowkinSystem.Blackeye.cs | 12 +++--------- .../Speech/Components/ShadowkinAccentComponent.cs | 2 +- 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Content.Server/SimpleStation14/Chat/ESayCommand.cs b/Content.Server/SimpleStation14/Chat/ESayCommand.cs index 4e125bc581..e3f81360a8 100644 --- a/Content.Server/SimpleStation14/Chat/ESayCommand.cs +++ b/Content.Server/SimpleStation14/Chat/ESayCommand.cs @@ -37,7 +37,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args) if (string.IsNullOrEmpty(message)) return; - EntitySystem.Get().TrySendInGameICMessage(playerEntity, message, InGameICChatType.Empathy, false, shell, player, checkRadioPrefix: false); + EntitySystem.Get().TrySendInGameICMessage(playerEntity, message, InGameICChatType.Empathy, false, false, shell, player, checkRadioPrefix: false); } } } diff --git a/Content.Server/SimpleStation14/Species/Shadowkin/Events/ShadowkinEvents.Powers.cs b/Content.Server/SimpleStation14/Species/Shadowkin/Events/ShadowkinEvents.Powers.cs index b120bc1b45..5008e8992f 100644 --- a/Content.Server/SimpleStation14/Species/Shadowkin/Events/ShadowkinEvents.Powers.cs +++ b/Content.Server/SimpleStation14/Species/Shadowkin/Events/ShadowkinEvents.Powers.cs @@ -24,7 +24,7 @@ public sealed partial class ShadowkinTeleportEvent : WorldTargetActionEvent, ISp [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; set; } } /// diff --git a/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinPowerSystem.Darken.cs b/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinPowerSystem.Darken.cs index 9f2ea18ede..c7e2769e34 100644 --- a/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinPowerSystem.Darken.cs +++ b/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinPowerSystem.Darken.cs @@ -24,7 +24,7 @@ public void ResetLight(PointLightComponent light, ShadowkinLightComponent sLight sLight.OldRadiusEdited = false; if (sLight.OldEnergyEdited) - light.Energy = sLight.OldEnergy; + _light.SetEnergy(light.Owner, sLight.OldEnergy); sLight.OldEnergyEdited = false; } @@ -136,7 +136,7 @@ public override void Update(float frameTime) // Put changes into effect _light.SetRadius(pointLight.Owner, radius); - pointLight.Energy = energy; + _light.SetEnergy(pointLight.Owner, energy); } } } diff --git a/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinSystem.Blackeye.cs b/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinSystem.Blackeye.cs index 1e20a215aa..908a77317c 100644 --- a/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinSystem.Blackeye.cs +++ b/Content.Server/SimpleStation14/Species/Shadowkin/Systems/ShadowkinSystem.Blackeye.cs @@ -80,15 +80,9 @@ private void OnBlackeye(ShadowkinBlackeyeEvent ev) var minus = damageable.TotalDamage; - _damageable.TryChangeDamage( - ev.Uid, - new DamageSpecifier(_prototype.Index("Cellular"), + _damageable.TryChangeDamage(ev.Uid, new DamageSpecifier(_prototype.Index("Cellular"), Math.Max((double) (key.Value - minus - 5), 0)), - true, - true, - null, - null, - false - ); + true, + true, null, null); } } diff --git a/Content.Server/SimpleStation14/Speech/Components/ShadowkinAccentComponent.cs b/Content.Server/SimpleStation14/Speech/Components/ShadowkinAccentComponent.cs index 20ab1723a7..5e613d5c76 100644 --- a/Content.Server/SimpleStation14/Speech/Components/ShadowkinAccentComponent.cs +++ b/Content.Server/SimpleStation14/Speech/Components/ShadowkinAccentComponent.cs @@ -1,4 +1,4 @@ namespace Content.Server.Speech.Components; [RegisterComponent] -public sealed class ShadowkinAccentComponent : Component {} +public sealed partial class ShadowkinAccentComponent : Component {}