diff --git a/Content.Client/Ligyb/DiseaseRoleSystem.cs b/Content.Client/Ligyb/DiseaseRoleSystem.cs index 64360aa020b..fa6ff2cd8fb 100644 --- a/Content.Client/Ligyb/DiseaseRoleSystem.cs +++ b/Content.Client/Ligyb/DiseaseRoleSystem.cs @@ -1,3 +1,5 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt + using Content.Shared.Actions; using Content.Shared.DoAfter; using Content.Shared.Doors.Systems; diff --git a/Content.Client/Ligyb/SickSystem.cs b/Content.Client/Ligyb/SickSystem.cs index 4976a8c2995..67e87dac00e 100644 --- a/Content.Client/Ligyb/SickSystem.cs +++ b/Content.Client/Ligyb/SickSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.CCVar; using Content.Shared.Mind.Components; using Content.Shared.Mobs.Systems; diff --git a/Content.Client/Ligyb/VaccinatorSystem.cs b/Content.Client/Ligyb/VaccinatorSystem.cs index 3e3045bb4fa..e553646f095 100644 --- a/Content.Client/Ligyb/VaccinatorSystem.cs +++ b/Content.Client/Ligyb/VaccinatorSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Chemistry.EntitySystems; namespace Content.Client.Chemistry.EntitySystems; diff --git a/Content.Server/Ligyb/CureDiseaseInfection.cs b/Content.Server/Ligyb/CureDiseaseInfection.cs index 6dfc81845b1..934f4c28310 100644 --- a/Content.Server/Ligyb/CureDiseaseInfection.cs +++ b/Content.Server/Ligyb/CureDiseaseInfection.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Server.Zombies; using Content.Shared.Chemistry.Reagent; using Robust.Shared.Configuration; diff --git a/Content.Server/Ligyb/DiseaseImmuneClothingSystem.cs b/Content.Server/Ligyb/DiseaseImmuneClothingSystem.cs index 707b13576a5..11d453bd519 100644 --- a/Content.Server/Ligyb/DiseaseImmuneClothingSystem.cs +++ b/Content.Server/Ligyb/DiseaseImmuneClothingSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Clothing.Components; using Content.Shared.Inventory.Events; using Content.Shared.Ligyb; diff --git a/Content.Server/Ligyb/DiseaseRoleSystem.cs b/Content.Server/Ligyb/DiseaseRoleSystem.cs index b0fc5e8145f..d79ac01d767 100644 --- a/Content.Server/Ligyb/DiseaseRoleSystem.cs +++ b/Content.Server/Ligyb/DiseaseRoleSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Server.Body.Systems; using Content.Server.Chat.Systems; using Content.Server.Doors.Systems; diff --git a/Content.Server/Ligyb/MinimumBleedComponent.cs b/Content.Server/Ligyb/MinimumBleedComponent.cs index d66344946bb..f674e76739b 100644 --- a/Content.Server/Ligyb/MinimumBleedComponent.cs +++ b/Content.Server/Ligyb/MinimumBleedComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.StatusIcon; using Robust.Shared.GameStates; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; diff --git a/Content.Server/Ligyb/MinimumBleedSystem.cs b/Content.Server/Ligyb/MinimumBleedSystem.cs index 29db030f71b..c23b9b7dda2 100644 --- a/Content.Server/Ligyb/MinimumBleedSystem.cs +++ b/Content.Server/Ligyb/MinimumBleedSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Robust.Shared.Configuration; namespace Content.Server.Ligyb; using Robust.Shared.Prototypes; diff --git a/Content.Server/Ligyb/SickSystem.cs b/Content.Server/Ligyb/SickSystem.cs index 202ba9d683c..d4673347924 100644 --- a/Content.Server/Ligyb/SickSystem.cs +++ b/Content.Server/Ligyb/SickSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Robust.Shared.Configuration; using Robust.Shared.Prototypes; using Robust.Shared.Timing; @@ -57,7 +58,7 @@ public override void Initialize() public void OnShut(EntityUid uid, SickComponent component, ComponentShutdown args) { - foreach(var emote in EnsureComp(uid).Emotes) + foreach (var emote in EnsureComp(uid).Emotes) { if (emote.Contains("Infected")) { @@ -66,10 +67,10 @@ public void OnShut(EntityUid uid, SickComponent component, ComponentShutdown arg } foreach (var key in component.Symptoms) { - switch(key) + switch (key) { case "Narcolepsy": - if(TryComp(uid, out var narc)) + if (TryComp(uid, out var narc)) { RemComp(uid); } @@ -85,11 +86,11 @@ public void OnShut(EntityUid uid, SickComponent component, ComponentShutdown arg { RemComp(uid); } - if(HasComp(uid)) + if (HasComp(uid)) { RemComp(uid); } - if(HasComp(uid)) + if (HasComp(uid)) { RemComp(uid); } @@ -108,7 +109,7 @@ public void OnShut(EntityUid uid, SickComponent component, ComponentShutdown arg break; } } - _bloodstream.ChangeBloodReagent(uid, component.BeforeInfectedBloodReagent); + _bloodstream.ChangeBloodReagent(uid, component.BeforeInfectedBloodReagent); } public override void Update(float frameTime) { @@ -134,7 +135,7 @@ public override void Update(float frameTime) } else { - if(_gameTiming.CurTime >= component.NextStadyAt) + if (_gameTiming.CurTime >= component.NextStadyAt) { component.Stady++; foreach (var emote in EnsureComp(uid).Emotes) @@ -172,9 +173,9 @@ void AddMoney(EntityUid uid, FixedPoint2 value) private void UpdateInfection(EntityUid uid, SickComponent component, EntityUid disease, DiseaseRoleComponent diseaseComponent) { - foreach((var key, (var min, var max)) in diseaseComponent.Symptoms) + foreach ((var key, (var min, var max)) in diseaseComponent.Symptoms) { - if(!component.Symptoms.Contains(key)) + if (!component.Symptoms.Contains(key)) { if (component.Stady >= min && component.Stady <= max) { @@ -198,9 +199,9 @@ private void UpdateInfection(EntityUid uid, SickComponent component, EntityUid d _autoEmote.AddEmote(uid, "InfectedCrying"); break; case "Narcolepsy": - if(!HasComp(uid)) + if (!HasComp(uid)) { - var c= AddComp(uid); + var c = AddComp(uid); EntityManager.EntitySysManager.GetEntitySystem().SetNarcolepsy(uid, new Vector2(10, 30), new Vector2(300, 600), c); } break; @@ -238,14 +239,15 @@ private void OnEmote(EntityUid uid, SickComponent component, ref EmoteEvent args { if (_robustRandom.Prob(0.9f)) { - if(TryComp(component.owner, out var disease)) { + if (TryComp(component.owner, out var disease)) + { var kind = SuicideKind.Piercing; if (_prototypeManager.TryIndex(kind.ToString(), out var damagePrototype)) { _damageableSystem.TryChangeDamage(uid, new(damagePrototype, 0.25f * disease.Lethal), true, origin: uid); } } - + EntityCoordinates start = Transform(uid).Coordinates; foreach (var entity in _lookup.GetEntitiesInRange(uid, 0.7f)) { @@ -277,7 +279,7 @@ private void OnEmote(EntityUid uid, SickComponent component, ref EmoteEvent args _vomitSystem.Vomit(uid, -30, -20); } } - if(args.Emote.ID == "Insult") + if (args.Emote.ID == "Insult") { if (TryComp(component.owner, out var disease)) { diff --git a/Content.Server/Ligyb/SleepyComponent.cs b/Content.Server/Ligyb/SleepyComponent.cs index 51c76a850c5..744eb0ec77b 100644 --- a/Content.Server/Ligyb/SleepyComponent.cs +++ b/Content.Server/Ligyb/SleepyComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using System.Numerics; namespace Content.Server.Traits.Assorted; diff --git a/Content.Server/Ligyb/SleepySystem.cs b/Content.Server/Ligyb/SleepySystem.cs index 091518d3476..eeb70752299 100644 --- a/Content.Server/Ligyb/SleepySystem.cs +++ b/Content.Server/Ligyb/SleepySystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Bed.Sleep; using Content.Shared.StatusEffect; using Robust.Shared.Random; diff --git a/Content.Server/Ligyb/VaccinatorSystem.cs b/Content.Server/Ligyb/VaccinatorSystem.cs index 080d61cf1ff..c8053393d7e 100644 --- a/Content.Server/Ligyb/VaccinatorSystem.cs +++ b/Content.Server/Ligyb/VaccinatorSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Server.Power.Components; using Content.Server.Power.EntitySystems; using Content.Shared.Chemistry.Components; @@ -90,11 +91,11 @@ private void OnPaper(PaperInputTextMessageLigyb args) List wasProto = new List(); foreach (var reactant in args.ReagentQuantity) { - if(_prototypeManager.TryIndex(reactant.Reagent.Prototype, out ReagentPrototype? protoss)) + if (_prototypeManager.TryIndex(reactant.Reagent.Prototype, out ReagentPrototype? protoss)) { - if(protoss.Group != "Infect") + if (protoss.Group != "Infect") { - if(paper != null) + if (paper != null) { EntityManager.DeleteEntity(paper); return; @@ -113,9 +114,9 @@ private void OnPaper(PaperInputTextMessageLigyb args) var text = new StringBuilder(); text.AppendLine("Для изготовления вакцины, требуется:"); text.AppendLine(); - foreach(var r in reactantReactions) + foreach (var r in reactantReactions) { - foreach(var reactan in r.Reactants) + foreach (var reactan in r.Reactants) { if (r.MixingCategories == null) { diff --git a/Content.Shared/Ligyb/DiseaseImmuneClothingComponent.cs b/Content.Shared/Ligyb/DiseaseImmuneClothingComponent.cs index 2988f8e0d63..ef2519c59cf 100644 --- a/Content.Shared/Ligyb/DiseaseImmuneClothingComponent.cs +++ b/Content.Shared/Ligyb/DiseaseImmuneClothingComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt namespace Content.Shared.Ligyb; [RegisterComponent] diff --git a/Content.Shared/Ligyb/DiseaseImmuneComponent.cs b/Content.Shared/Ligyb/DiseaseImmuneComponent.cs index acdc18b0237..44b4d56f52b 100644 --- a/Content.Shared/Ligyb/DiseaseImmuneComponent.cs +++ b/Content.Shared/Ligyb/DiseaseImmuneComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt namespace Content.Shared.Ligyb; [RegisterComponent] diff --git a/Content.Shared/Ligyb/DiseaseRoleComponent.cs b/Content.Shared/Ligyb/DiseaseRoleComponent.cs index e8eff447750..4046672fe2c 100644 --- a/Content.Shared/Ligyb/DiseaseRoleComponent.cs +++ b/Content.Shared/Ligyb/DiseaseRoleComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; diff --git a/Content.Shared/Ligyb/DiseaseTempImmuneComponent.cs b/Content.Shared/Ligyb/DiseaseTempImmuneComponent.cs index 0e9b3f771d5..c745f9ac86c 100644 --- a/Content.Shared/Ligyb/DiseaseTempImmuneComponent.cs +++ b/Content.Shared/Ligyb/DiseaseTempImmuneComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt namespace Content.Shared.Ligyb; [RegisterComponent] diff --git a/Content.Shared/Ligyb/DiseaseVaccineTimerComponent.cs b/Content.Shared/Ligyb/DiseaseVaccineTimerComponent.cs index 4644d125fb0..2ebbb40f67d 100644 --- a/Content.Shared/Ligyb/DiseaseVaccineTimerComponent.cs +++ b/Content.Shared/Ligyb/DiseaseVaccineTimerComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt namespace Content.Shared.Ligyb; [RegisterComponent] diff --git a/Content.Shared/Ligyb/DiseaseVaccineTimerSystem.cs b/Content.Shared/Ligyb/DiseaseVaccineTimerSystem.cs index 40e91e3c649..d54fa9291b2 100644 --- a/Content.Shared/Ligyb/DiseaseVaccineTimerSystem.cs +++ b/Content.Shared/Ligyb/DiseaseVaccineTimerSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Robust.Shared.Configuration; namespace Content.Shared.Ligyb; using Robust.Shared.Prototypes; @@ -22,7 +23,7 @@ public override void Initialize() public void OnInit(EntityUid uid, DiseaseVaccineTimerComponent component, ComponentInit args) { component.ReadyAt = _gameTiming.CurTime + component.delay; - if(TryComp(uid, out var speed)) + if (TryComp(uid, out var speed)) { component.SpeedBefore = speed.BaseSprintSpeed; _movementSpeed.ChangeBaseSpeed(uid, speed.BaseWalkSpeed, speed.BaseSprintSpeed / 2, speed.Acceleration, speed); @@ -30,14 +31,14 @@ public void OnInit(EntityUid uid, DiseaseVaccineTimerComponent component, Compon } public void OnShut(EntityUid uid, DiseaseVaccineTimerComponent component, ComponentShutdown args) { - if(component.SpeedBefore != 0) + if (component.SpeedBefore != 0) { - if(TryComp(uid, out var speed)) + if (TryComp(uid, out var speed)) { _movementSpeed.ChangeBaseSpeed(uid, speed.BaseWalkSpeed, component.SpeedBefore, speed.Acceleration, speed); } } - + } public override void Update(float frameTime) { diff --git a/Content.Shared/Ligyb/InfectEvent.cs b/Content.Shared/Ligyb/InfectEvent.cs index 4129375437a..c7732451ad9 100644 --- a/Content.Shared/Ligyb/InfectEvent.cs +++ b/Content.Shared/Ligyb/InfectEvent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Actions; using Content.Shared.Store; using Robust.Shared.GameObjects; diff --git a/Content.Shared/Ligyb/SharedDiseaseRoleSystem.cs b/Content.Shared/Ligyb/SharedDiseaseRoleSystem.cs index 011c3b99ae4..e59bf3b6837 100644 --- a/Content.Shared/Ligyb/SharedDiseaseRoleSystem.cs +++ b/Content.Shared/Ligyb/SharedDiseaseRoleSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Actions; using Content.Shared.DoAfter; using Content.Shared.Doors.Systems; @@ -74,9 +75,9 @@ public void OnInfect(InfectEvent ev) { var comps = AddComp(ev.Target); comps.owner = ev.Performer; - + comp.Infected.Add(ev.Target); - + } } } diff --git a/Content.Shared/Ligyb/SharedSickSystem.cs b/Content.Shared/Ligyb/SharedSickSystem.cs index cc414f99f75..aefa2619192 100644 --- a/Content.Shared/Ligyb/SharedSickSystem.cs +++ b/Content.Shared/Ligyb/SharedSickSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.CCVar; using Content.Shared.Mind.Components; using Content.Shared.Mobs.Systems; diff --git a/Content.Shared/Ligyb/SharedVaccinatorSystem.cs b/Content.Shared/Ligyb/SharedVaccinatorSystem.cs index 818c3988f6a..84789fb6968 100644 --- a/Content.Shared/Ligyb/SharedVaccinatorSystem.cs +++ b/Content.Shared/Ligyb/SharedVaccinatorSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Chemistry.Components; using Content.Shared.Chemistry.Reaction; using Content.Shared.Interaction; @@ -164,7 +165,7 @@ public void FinishMix(Entity entity) } } _solution.UpdateChemicals(soln.Value, true, reactionMixer); - + } } diff --git a/Content.Shared/Ligyb/SickComponent.cs b/Content.Shared/Ligyb/SickComponent.cs index dae9db90e20..3efb7b5ac1e 100644 --- a/Content.Shared/Ligyb/SickComponent.cs +++ b/Content.Shared/Ligyb/SickComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.StatusIcon; using Robust.Shared.GameStates; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; diff --git a/Content.Shared/Ligyb/SpeedModifierOnComponent.cs b/Content.Shared/Ligyb/SpeedModifierOnComponent.cs index 4c85425daa1..12f15f9f676 100644 --- a/Content.Shared/Ligyb/SpeedModifierOnComponent.cs +++ b/Content.Shared/Ligyb/SpeedModifierOnComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Clothing; using Robust.Shared.GameStates; @@ -17,13 +18,15 @@ public sealed partial class SpeedModifierOnComponent : Component /// /// A multiplier applied to the walk speed. /// - [DataField] [ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] + [DataField] + [ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] public float WalkModifier = 0.6f; /// /// A multiplier applied to the sprint speed. /// - [DataField] [ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] + [DataField] + [ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] public float SprintModifier = 0.6f; [DataField] public bool TurnedOff; diff --git a/Content.Shared/Ligyb/SpeedModifierOnSystem.cs b/Content.Shared/Ligyb/SpeedModifierOnSystem.cs index f7789d782b7..32186fc4992 100644 --- a/Content.Shared/Ligyb/SpeedModifierOnSystem.cs +++ b/Content.Shared/Ligyb/SpeedModifierOnSystem.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Clothing; using Content.Shared.Hands; using Content.Shared.Movement.Systems; diff --git a/Content.Shared/Ligyb/VaccinatorComponent.cs b/Content.Shared/Ligyb/VaccinatorComponent.cs index e77a872c4e5..0751864ce4c 100644 --- a/Content.Shared/Ligyb/VaccinatorComponent.cs +++ b/Content.Shared/Ligyb/VaccinatorComponent.cs @@ -1,3 +1,4 @@ +// © SUNRISE, An EULA/CLA with a hosting restriction, full text: https://github.com/space-sunrise/space-station-14/blob/master/CLA.txt using Content.Shared.Chemistry.EntitySystems; using Content.Shared.Chemistry.Reaction; using Robust.Shared.Audio;