diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/DispelPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/DispelPowerSystem.cs index 0f1aaa91264..b67390cf040 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/DispelPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/DispelPowerSystem.cs @@ -45,15 +45,14 @@ public override void Initialize() SubscribeLocalEvent(OnRevenantDispelled); } - // 9/25/2023 by JJ. I have no idea what I'm doing. I've tried refactoring this the best I can. will test ASAP. private void OnInit(EntityUid uid, DispelPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.DispelActionEntity, component.DispelActionId ); + _actions.AddAction(uid, ref component.DispelActionEntity, component.DispelActionId ); _actions.TryGetActionData( component.DispelActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.DispelActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.DispelActionEntity;*/ + psionic.PsionicAbility = component.DispelActionEntity; } private void OnShutdown(EntityUid uid, DispelPowerComponent component, ComponentShutdown args) diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MetapsionicPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MetapsionicPowerSystem.cs index a602c19b698..91df3a093dc 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MetapsionicPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MetapsionicPowerSystem.cs @@ -31,13 +31,13 @@ public override void Initialize() private void OnInit(EntityUid uid, MetapsionicPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.MetapsionicActionEntity, component.MetapsionicActionId ); + _actions.AddAction(uid, ref component.MetapsionicActionEntity, component.MetapsionicActionId ); _actions.TryGetActionData( component.MetapsionicActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.MetapsionicActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) psionic.PsionicAbility = component.MetapsionicActionEntity; - */ + } private void OnShutdown(EntityUid uid, MetapsionicPowerComponent component, ComponentShutdown args) diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MindSwapPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MindSwapPowerSystem.cs index 979bb572ad7..62372dcca3b 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MindSwapPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/MindSwapPowerSystem.cs @@ -43,12 +43,12 @@ public override void Initialize() private void OnInit(EntityUid uid, MindSwapPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.MindSwapActionEntity, component.MindSwapActionId ); + _actions.AddAction(uid, ref component.MindSwapActionEntity, component.MindSwapActionId ); _actions.TryGetActionData( component.MindSwapActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.MindSwapActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.MindSwapActionEntity;*/ + psionic.PsionicAbility = component.MindSwapActionEntity; } private void OnShutdown(EntityUid uid, MindSwapPowerComponent component, ComponentShutdown args) @@ -129,7 +129,7 @@ private void OnGhostAttempt(GhostAttemptHandleEvent args) if (!HasComp(args.Mind.CurrentEntity)) return; - //JJ Comment - No idea where the viaCommand went. It's on the internal OnGhostAttempt, but not this layer. Maybe unnecessary. + //No idea where the viaCommand went. It's on the internal OnGhostAttempt, but not this layer. Maybe unnecessary. /*if (!args.viaCommand) return;*/ @@ -174,10 +174,10 @@ public void Swap(EntityUid performer, EntityUid target, bool end = false) if (end) { - var performerMindPowerComp = EntityManager.GetComponent(performer); - var targetMindPowerComp = EntityManager.GetComponent(target); - _actions.RemoveAction(performer, performerMindPowerComp.MindSwapActionEntity); - _actions.RemoveAction(target, targetMindPowerComp.MindSwapActionEntity); + var performerMindPowerComp = EntityManager.GetComponent(performer); + var targetMindPowerComp = EntityManager.GetComponent(target); + _actions.RemoveAction(performer, performerMindPowerComp.MindSwapReturnActionEntity); + _actions.RemoveAction(target, targetMindPowerComp.MindSwapReturnActionEntity); RemComp(performer); RemComp(target); diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/NoosphericZapPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/NoosphericZapPowerSystem.cs index 713bf357eb2..798d9dbdadd 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/NoosphericZapPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/NoosphericZapPowerSystem.cs @@ -33,12 +33,12 @@ public override void Initialize() private void OnInit(EntityUid uid, NoosphericZapPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.NoosphericZapActionEntity, component.NoosphericZapActionId ); + _actions.AddAction(uid, ref component.NoosphericZapActionEntity, component.NoosphericZapActionId ); _actions.TryGetActionData( component.NoosphericZapActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.NoosphericZapActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.NoosphericZapActionEntity; */ + psionic.PsionicAbility = component.NoosphericZapActionEntity; } private void OnShutdown(EntityUid uid, NoosphericZapPowerComponent component, ComponentShutdown args) diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicInvisibilityPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicInvisibilityPowerSystem.cs index adce62a0664..4cec80a30a0 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicInvisibilityPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicInvisibilityPowerSystem.cs @@ -39,12 +39,12 @@ public override void Initialize() private void OnInit(EntityUid uid, PsionicInvisibilityPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.PsionicInvisibilityActionEntity, component.PsionicInvisibilityActionId ); + _actions.AddAction(uid, ref component.PsionicInvisibilityActionEntity, component.PsionicInvisibilityActionId ); _actions.TryGetActionData( component.PsionicInvisibilityActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.PsionicInvisibilityActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.PsionicInvisibilityActionEntity;*/ + psionic.PsionicAbility = component.PsionicInvisibilityActionEntity; } private void OnShutdown(EntityUid uid, PsionicInvisibilityPowerComponent component, ComponentShutdown args) diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicRegenerationPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicRegenerationPowerSystem.cs index 5ea22c38a0c..1a6b67e5086 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicRegenerationPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PsionicRegenerationPowerSystem.cs @@ -50,12 +50,12 @@ public override void Initialize() private void OnInit(EntityUid uid, PsionicRegenerationPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.PsionicRegenerationActionEntity, component.PsionicRegenerationActionId ); + _actions.AddAction(uid, ref component.PsionicRegenerationActionEntity, component.PsionicRegenerationActionId ); _actions.TryGetActionData( component.PsionicRegenerationActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.PsionicRegenerationActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.PsionicRegenerationActionEntity; */ + psionic.PsionicAbility = component.PsionicRegenerationActionEntity; } private void OnPowerUsed(EntityUid uid, PsionicRegenerationPowerComponent component, PsionicRegenerationPowerActionEvent args) diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PyrokinesisPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PyrokinesisPowerSystem.cs index 3b8616673db..f3fe47ef2bd 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PyrokinesisPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/PyrokinesisPowerSystem.cs @@ -30,12 +30,12 @@ public override void Initialize() private void OnInit(EntityUid uid, PyrokinesisPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.PyrokinesisActionEntity, component.PyrokinesisActionId ); + _actions.AddAction(uid, ref component.PyrokinesisActionEntity, component.PyrokinesisActionId ); _actions.TryGetActionData( component.PyrokinesisActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.PyrokinesisActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.PyrokinesisActionEntity;*/ + psionic.PsionicAbility = component.PyrokinesisActionEntity; } private void OnShutdown(EntityUid uid, PyrokinesisPowerComponent component, ComponentShutdown args) diff --git a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/TelegnosisPowerSystem.cs b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/TelegnosisPowerSystem.cs index b5b55f61daa..b233bda6225 100644 --- a/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/TelegnosisPowerSystem.cs +++ b/Content.Server/Nyanotrasen/Abilities/Psionics/Abilities/TelegnosisPowerSystem.cs @@ -30,12 +30,12 @@ public override void Initialize() private void OnInit(EntityUid uid, TelegnosisPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.TelegnosisActionEntity, component.TelegnosisActionId ); + _actions.AddAction(uid, ref component.TelegnosisActionEntity, component.TelegnosisActionId ); _actions.TryGetActionData( component.TelegnosisActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.TelegnosisActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.TelegnosisActionEntity;*/ + psionic.PsionicAbility = component.TelegnosisActionEntity; } private void OnShutdown(EntityUid uid, TelegnosisPowerComponent component, ComponentShutdown args) diff --git a/Content.Server/Nyanotrasen/Chat/TSayCommand.cs b/Content.Server/Nyanotrasen/Chat/TSayCommand.cs index a175f696ad8..debbf928ce2 100644 --- a/Content.Server/Nyanotrasen/Chat/TSayCommand.cs +++ b/Content.Server/Nyanotrasen/Chat/TSayCommand.cs @@ -36,7 +36,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args) var message = string.Join(" ", args).Trim(); if (string.IsNullOrEmpty(message)) return; - //JJ: Not sure if I should hide the logs from this. Default is false. + //Not sure if I should hide the logs from this. Default is false. EntitySystem.Get().TrySendInGameICMessage(playerEntity, message, InGameICChatType.Telepathic, ChatTransmitRange.Normal, false, shell, player); } } diff --git a/Content.Server/Nyanotrasen/Chemistry/SolutionRegenerationSwitcher/SolutionRegenerationSwitcherSystem.cs b/Content.Server/Nyanotrasen/Chemistry/SolutionRegenerationSwitcher/SolutionRegenerationSwitcherSystem.cs index bdaff3cc204..abe4b61e7be 100644 --- a/Content.Server/Nyanotrasen/Chemistry/SolutionRegenerationSwitcher/SolutionRegenerationSwitcherSystem.cs +++ b/Content.Server/Nyanotrasen/Chemistry/SolutionRegenerationSwitcher/SolutionRegenerationSwitcherSystem.cs @@ -74,7 +74,6 @@ private void SwitchReagent(EntityUid uid, SolutionRegenerationSwitcherComponent //Only reagents with spritePath property can change appearance of transformable containers! if (!string.IsNullOrWhiteSpace(primaryId?.Prototype)) { - //JJ Comment - Can't get this to realize I've checked if it's Null already. if (!_prototypeManager.TryIndex(primaryId.Value.Prototype, out proto)) { _sawmill.Error($"Can't get get reagent prototype {primaryId} for {ToPrettyString(uid)}"); diff --git a/Content.Server/Nyanotrasen/Psionics/Invisibility/PsionicInvisibilitySystem.cs b/Content.Server/Nyanotrasen/Psionics/Invisibility/PsionicInvisibilitySystem.cs index 08f42030e0f..455385c3e6b 100644 --- a/Content.Server/Nyanotrasen/Psionics/Invisibility/PsionicInvisibilitySystem.cs +++ b/Content.Server/Nyanotrasen/Psionics/Invisibility/PsionicInvisibilitySystem.cs @@ -133,7 +133,7 @@ public void SetCanSeePsionicInvisiblity(EntityUid uid, bool set) { if (EntityManager.TryGetComponent(uid, out EyeComponent? eye)) { - _eye.SetVisibilityMask(uid, eye.VisibilityMask & (int) VisibilityFlags.PsionicInvisibility, eye); + //_eye.SetVisibilityMask(uid, eye.VisibilityMask & (int) VisibilityFlags.PsionicInvisibility, eye); } } } diff --git a/Content.Server/Nyanotrasen/Station Events/Events/NoosphericFryRule.cs b/Content.Server/Nyanotrasen/Station Events/Events/NoosphericFryRule.cs index f651b1e49aa..bbb85e3a91b 100644 --- a/Content.Server/Nyanotrasen/Station Events/Events/NoosphericFryRule.cs +++ b/Content.Server/Nyanotrasen/Station Events/Events/NoosphericFryRule.cs @@ -82,7 +82,6 @@ protected override void Started(EntityUid uid, NoosphericFryRuleComponent compon if (TryComp(pair.wearer, out var flammableComponent)) { flammableComponent.FireStacks += 1; - //JJ Comment - Need a target for the igniter. Not sure this is right. _flammableSystem.Ignite(pair.wearer, pair.wearer, flammableComponent); } } else if (_glimmerSystem.Glimmer > 750) @@ -91,7 +90,6 @@ protected override void Started(EntityUid uid, NoosphericFryRuleComponent compon if (TryComp(pair.wearer, out var flammableComponent)) { flammableComponent.FireStacks += 2; - //JJ Comment - Need a target for the igniter. Not sure this is right. _flammableSystem.Ignite(pair.wearer, pair.wearer, flammableComponent); } } diff --git a/Content.Shared/Nyanotrasen/Abilities/Psionics/Abilities/MassSleep/MassSleepPowerSystem.cs b/Content.Shared/Nyanotrasen/Abilities/Psionics/Abilities/MassSleep/MassSleepPowerSystem.cs index d906946c814..e36a3c70e8a 100644 --- a/Content.Shared/Nyanotrasen/Abilities/Psionics/Abilities/MassSleep/MassSleepPowerSystem.cs +++ b/Content.Shared/Nyanotrasen/Abilities/Psionics/Abilities/MassSleep/MassSleepPowerSystem.cs @@ -29,12 +29,12 @@ public override void Initialize() private void OnInit(EntityUid uid, MassSleepPowerComponent component, ComponentInit args) { - /*_actions.AddAction(uid, ref component.MassSleepActionEntity, component.MassSleepActionId ); + _actions.AddAction(uid, ref component.MassSleepActionEntity, component.MassSleepActionId ); _actions.TryGetActionData( component.MassSleepActionEntity, out var actionData ); if (actionData is { UseDelay: not null }) _actions.StartUseDelay(component.MassSleepActionEntity); if (TryComp(uid, out var psionic) && psionic.PsionicAbility == null) - psionic.PsionicAbility = component.MassSleepActionEntity;*/ + psionic.PsionicAbility = component.MassSleepActionEntity; } private void OnShutdown(EntityUid uid, MassSleepPowerComponent component, ComponentShutdown args) diff --git a/Content.Shared/Nyanotrasen/Abilities/Psionics/SharedPsionicAbilitiesSystem.cs b/Content.Shared/Nyanotrasen/Abilities/Psionics/SharedPsionicAbilitiesSystem.cs index 5f636797511..2739d5ba31a 100644 --- a/Content.Shared/Nyanotrasen/Abilities/Psionics/SharedPsionicAbilitiesSystem.cs +++ b/Content.Shared/Nyanotrasen/Abilities/Psionics/SharedPsionicAbilitiesSystem.cs @@ -108,8 +108,8 @@ public PsionicPowerUsedEvent(EntityUid user, string power) [NetSerializable] public sealed class PsionicsChangedEvent : EntityEventArgs { - public readonly EntityUid Euid; - public PsionicsChangedEvent(EntityUid euid) + public readonly NetEntity Euid; + public PsionicsChangedEvent(NetEntity euid) { Euid = euid; } diff --git a/Resources/Prototypes/Nyanotrasen/psionicPowers.yml b/Resources/Prototypes/Nyanotrasen/psionicPowers.yml index 271ac24d371..f8c10125590 100644 --- a/Resources/Prototypes/Nyanotrasen/psionicPowers.yml +++ b/Resources/Prototypes/Nyanotrasen/psionicPowers.yml @@ -1,10 +1,10 @@ - type: weightedRandom id: RandomPsionicPowerPool weights: - MetapsionicPower: 1 - DispelPower: 1 - TelegnosisPower: 1 - PsionicRegenerationPower: 1 - MassSleepPower: 0.3 + #MetapsionicPower: 1 + #DispelPower: 1 + #TelegnosisPower: 1 + #PsionicRegenerationPower: 1 + #MassSleepPower: 0.3 PsionicInvisibilityPower: 0.15 - MindSwapPower: 0.15 + #MindSwapPower: 0.15