Skip to content

Commit c2cbc90

Browse files
RxupKayzelW
andauthored
Hotfix 08.01.26 (#1414)
* hotfix * hotfix * fix? * интеграция языков и фикс статус эффектов * upd * fix felinids * Update PseudoItemSystem.cs * Update SharedPseudoItemSystem.cs --------- Co-authored-by: Роман Капитонов <43700376+KayzelW@users.noreply.github.com>
1 parent d679503 commit c2cbc90

File tree

83 files changed

+697
-278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+697
-278
lines changed

Content.Client/Backmen/Blob/BlobObserverSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public override void Initialize()
3232
SubscribeNetworkEvent<RoundRestartCleanupEvent>(RoundRestartCleanup);
3333
}
3434

35-
private readonly ProtoId<FactionIconPrototype> BlobFaction = "BlobFaction";
35+
private static readonly ProtoId<FactionIconPrototype> BlobFaction = "BlobFaction";
3636

3737
private void OnShowBlobIcon<T>(Entity<T> ent, ref GetStatusIconsEvent args) where T : Component
3838
{

Content.Client/Backmen/Flesh/FleshCultist.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public override void Initialize()
1818
SubscribeLocalEvent<FleshCultistComponent, GetStatusIconsEvent>(OnShowCultIcon);
1919
}
2020

21-
private readonly ProtoId<FactionIconPrototype> FleshcultistFaction = "FleshcultistFaction";
21+
private static readonly ProtoId<FactionIconPrototype> FleshcultistFaction = "FleshcultistFaction";
2222

2323
private void OnShowCultIcon(Entity<FleshCultistComponent> ent, ref GetStatusIconsEvent args)
2424
{

Content.Client/Backmen/Overlays/Shaders/EtherealOverlay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public sealed class EtherealOverlay : Overlay
1515
public override OverlaySpace Space => OverlaySpace.WorldSpaceBelowFOV;
1616
private readonly ShaderInstance _shader;
1717

18-
private readonly ProtoId<ShaderPrototype> Ethereal = "Ethereal";
18+
private static readonly ProtoId<ShaderPrototype> Ethereal = "Ethereal";
1919

2020
public EtherealOverlay()
2121
{

Content.Client/Backmen/Overlays/Systems/NearsightedSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public override void Initialize()
2020
_overlay = new Overlays.NearsightedOverlay();
2121
}
2222

23-
private readonly ProtoId<TagPrototype> TagName = "GlassesNearsight";
23+
private static readonly ProtoId<TagPrototype> TagName = "GlassesNearsight";
2424

2525
public override void Update(float frameTime)
2626
{

Content.Client/Backmen/StationAI/AiEnemySystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public override void Initialize()
2222
_ghostQuery = GetEntityQuery<GhostComponent>();
2323
}
2424

25-
private readonly ProtoId<SecurityIconPrototype> AiEnemyStatus = "AiIconEnemyTarget";
25+
private static readonly ProtoId<SecurityIconPrototype> AiEnemyStatus = "AiIconEnemyTarget";
2626
private void GetIcon(Entity<AIEnemyNTComponent> target, ref GetStatusIconsEvent args)
2727
{
2828
var ent = _player.LocalSession?.AttachedEntity ?? EntityUid.Invalid;

Content.Client/Backmen/Teams/TdmTeamSystem.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ protected override void SetTeam(Entity<TdmMemberComponent?> target, StationTeamM
2222
// do nothing on client
2323
}
2424

25-
private readonly ProtoId<FactionIconPrototype> TeamA = "TeamAFaction";
26-
private readonly ProtoId<FactionIconPrototype> TeamB = "TeamBFaction";
27-
private readonly ProtoId<FactionIconPrototype> TeamNoTeam = "Team0Faction";
25+
private static readonly ProtoId<FactionIconPrototype> TeamA = "TeamAFaction";
26+
private static readonly ProtoId<FactionIconPrototype> TeamB = "TeamBFaction";
27+
private static readonly ProtoId<FactionIconPrototype> TeamNoTeam = "Team0Faction";
2828

2929
private void OnGetTeamIcon(Entity<TdmMemberComponent> ent, ref GetStatusIconsEvent args)
3030
{

Content.Client/Backmen/Vampiric/BloodSuckerSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public override void Initialize()
2121
SubscribeLocalEvent<BkmVampireComponent, GetStatusIconsEvent>(OnShowVampireIcon);
2222
}
2323

24-
private readonly ProtoId<FactionIconPrototype> VampireFaction = "VampireFaction";
24+
private static readonly ProtoId<FactionIconPrototype> VampireFaction = "VampireFaction";
2525

2626
private void OnShowVampireIcon(Entity<BkmVampireComponent> ent, ref GetStatusIconsEvent args)
2727
{

Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ namespace Content.Server.Administration.Systems;
6464

6565
public sealed partial class AdminVerbSystem
6666
{
67-
private readonly ProtoId<PolymorphPrototype> LizardSmite = "AdminLizardSmite";
68-
private readonly ProtoId<PolymorphPrototype> VulpkaninSmite = "AdminVulpSmite";
67+
private static readonly ProtoId<PolymorphPrototype> LizardSmite = "AdminLizardSmite";
68+
private static readonly ProtoId<PolymorphPrototype> VulpkaninSmite = "AdminVulpSmite";
6969

7070
[Dependency] private readonly SharedActionsSystem _actions = default!;
7171
[Dependency] private readonly IRobustRandom _random = default!;
@@ -95,7 +95,7 @@ public sealed partial class AdminVerbSystem
9595
[Dependency] private readonly SlipperySystem _slipperySystem = default!;
9696

9797
private readonly EntProtoId _actionViewLawsProtoId = "ActionViewLaws";
98-
private readonly ProtoId<SiliconLawsetPrototype> _crewsimovLawset = "Crewsimov";
98+
private static readonly ProtoId<SiliconLawsetPrototype> _crewsimovLawset = "Crewsimov";
9999

100100
private readonly EntProtoId _siliconMindRole = "MindRoleSiliconBrain";
101101
private const string SiliconLawBoundUserInterface = "SiliconLawBoundUserInterface";

Content.Server/Animals/Systems/ParrotMemorySystem.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
using Content.Server.Vocalization.Systems;
99
using Content.Shared.Animals.Components;
1010
using Content.Shared.Animals.Systems;
11+
using Content.Shared.Backmen.Language;
1112
using Content.Shared.Database;
1213
using Content.Shared.Mobs.Systems;
1314
using Content.Shared.Speech;
1415
using Content.Shared.Speech.Components;
1516
using Content.Shared.Whitelist;
1617
using Robust.Shared.Network;
18+
using Robust.Shared.Prototypes;
1719
using Robust.Shared.Random;
1820
using Robust.Shared.Timing;
1921
using Robust.Shared.Utility;
@@ -63,15 +65,15 @@ private void ListenerOnMapInit(Entity<ParrotListenerComponent> entity, ref MapIn
6365
private void OnListen(Entity<ParrotListenerComponent> entity, ref ListenEvent args)
6466
{
6567

66-
TryLearn(entity.Owner, args.Message, args.Source);
68+
TryLearn(entity.Owner, args.Message, args.Source, args.Language?.ID ?? "Universal");
6769
}
6870

6971
private void OnHeadsetReceive(Entity<ParrotListenerComponent> entity, ref HeadsetRadioReceiveRelayEvent args)
7072
{
7173
var message = args.RelayedEvent.Message;
7274
var source = args.RelayedEvent.MessageSource;
7375

74-
TryLearn(entity.Owner, message, source);
76+
TryLearn(entity.Owner, message, source, args.RelayedEvent.Language?.ID ?? "Universal");
7577
}
7678

7779
/// <summary>
@@ -102,7 +104,8 @@ private void OnTryVocalize(Entity<ParrotMemoryComponent> entity, ref TryVocalize
102104
/// <param name="entity">Entity learning a new word</param>
103105
/// <param name="incomingMessage">Message to learn</param>
104106
/// <param name="source">Source EntityUid of the message</param>
105-
public void TryLearn(Entity<ParrotMemoryComponent?, ParrotListenerComponent?> entity, string incomingMessage, EntityUid source)
107+
/// <param name="lang"></param>
108+
public void TryLearn(Entity<ParrotMemoryComponent?, ParrotListenerComponent?> entity, string incomingMessage, EntityUid source, ProtoId<LanguagePrototype> lang) // backmen
106109
{
107110
if (!Resolve(entity, ref entity.Comp1, ref entity.Comp2))
108111
return;
@@ -142,7 +145,7 @@ public void TryLearn(Entity<ParrotMemoryComponent?, ParrotListenerComponent?> en
142145
return;
143146

144147
// actually commit this message to memory
145-
Learn((entity, entity.Comp1), message, source);
148+
Learn((entity, entity.Comp1), message, source, lang);
146149
}
147150

148151
/// <summary>
@@ -151,7 +154,8 @@ public void TryLearn(Entity<ParrotMemoryComponent?, ParrotListenerComponent?> en
151154
/// <param name="entity">Entity learning a new word</param>
152155
/// <param name="message">Message to learn</param>
153156
/// <param name="source">Source EntityUid of the message</param>
154-
private void Learn(Entity<ParrotMemoryComponent> entity, string message, EntityUid source)
157+
/// <param name="lang"></param>
158+
private void Learn(Entity<ParrotMemoryComponent> entity, string message, EntityUid source, ProtoId<LanguagePrototype> lang) // backmen
155159
{
156160
// log a low-priority chat type log to the admin logger
157161
// specifies what message was learnt by what entity, and who taught the message to that entity
@@ -163,7 +167,7 @@ private void Learn(Entity<ParrotMemoryComponent> entity, string message, EntityU
163167
sourceNetUserId = mind.UserId;
164168
}
165169

166-
var newMemory = new SpeechMemory(sourceNetUserId, message);
170+
var newMemory = new SpeechMemory(sourceNetUserId, message, lang);
167171

168172
// add a new message if there is space in the memory
169173
if (entity.Comp.SpeechMemories.Count < entity.Comp.MaxSpeechMemory)

Content.Server/Backmen/Abilities/Psionics/Abilities/PsionicRegenerationPowerSystem.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using Content.Shared.Backmen.Psionics.Events;
1414
using Content.Shared.Body.Components;
1515
using Content.Shared.Body.Systems;
16+
using Content.Shared.Chemistry.Reagent;
1617
using Content.Shared.Examine;
1718
using Robust.Server.Audio;
1819
using static Content.Shared.Examine.ExamineSystemShared;
@@ -90,6 +91,8 @@ private void OnDispelled(EntityUid uid, PsionicRegenerationPowerComponent compon
9091
args.Handled = true;
9192
}
9293

94+
private static readonly ProtoId<ReagentPrototype> PsionicRegenerationEssence = "PsionicRegenerationEssence";
95+
9396
private void OnDoAfter(EntityUid uid, PsionicRegenerationPowerComponent component, PsionicRegenerationDoAfterEvent args)
9497
{
9598
component.DoAfter = null;
@@ -104,7 +107,7 @@ private void OnDoAfter(EntityUid uid, PsionicRegenerationPowerComponent componen
104107
var percentageComplete = Math.Min(1f, (_gameTiming.CurTime - args.StartedAt).TotalSeconds / component.UseDelay);
105108

106109
var solution = new Solution();
107-
solution.AddReagent("PsionicRegenerationEssence", FixedPoint2.New(component.EssenceAmount * percentageComplete));
110+
solution.AddReagent(PsionicRegenerationEssence, FixedPoint2.New(component.EssenceAmount * percentageComplete));
108111
_bloodstreamSystem.TryAddToBloodstream((uid, stream), solution);
109112
}
110113
}

0 commit comments

Comments
 (0)