-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from modern-nm/ipc-3
Набор исправлений для КПБ.
- Loading branch information
Showing
9 changed files
with
95 additions
and
37 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
Content.Server/SimpleStation14/Radio/IntrinsicRadioKeySystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Content.Server.Radio.Components; | ||
using Content.Shared.Radio; | ||
using Content.Shared.Radio.Components; | ||
|
||
namespace Content.Server.SimpleStation14.Radio; | ||
|
||
public sealed class IntrinsicRadioKeySystem : EntitySystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<IntrinsicRadioTransmitterComponent, EncryptionChannelsChangedEvent>(OnTransmitterChannelsChanged); | ||
SubscribeLocalEvent<ActiveRadioComponent, EncryptionChannelsChangedEvent>(OnReceiverChannelsChanged); | ||
} | ||
|
||
private void OnTransmitterChannelsChanged(EntityUid uid, IntrinsicRadioTransmitterComponent component, EncryptionChannelsChangedEvent args) | ||
{ | ||
UpdateChannels(uid, args.Component, ref component.Channels); | ||
} | ||
|
||
private void OnReceiverChannelsChanged(EntityUid uid, ActiveRadioComponent component, EncryptionChannelsChangedEvent args) | ||
{ | ||
UpdateChannels(uid, args.Component, ref component.Channels); | ||
} | ||
|
||
private void UpdateChannels(EntityUid _, EncryptionKeyHolderComponent keyHolderComp, ref HashSet<string> channels) | ||
{ | ||
channels.Clear(); | ||
channels.UnionWith(keyHolderComp.Channels); | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
Resources/Locale/ru-RU/SimpleStation14/Content/Silicons/siliconChargers.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
silicon-charger-overheatwarning = You feel like you're in a microwave! | ||
silicon-charger-chargerate-string = Charge rate | ||
silicon-charger-efficiency-string = Efficiency | ||
silicon-charger-overheatwarning = Вы чувствуете, будто вы в микроволновке! | ||
silicon-charger-chargerate-string = Скорость зарядки | ||
silicon-charger-efficiency-string = Эффективность | ||
silicon-charger-list-full = {CAPITALIZE(THE($charger))} can only accommodate so many targets! | ||
silicon-charger-list-full = {CAPITALIZE($charger)} может вместить только такое количество целей! |
3 changes: 1 addition & 2 deletions
3
Resources/Locale/ru-RU/SimpleStation14/prototypes/entities/mobs/Player/ipc.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...Locale/ru-RU/SimpleStation14/prototypes/entities/structures/machines/silicon_chargers.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ent-SiliconChargerIndustrial = промышленное зарядное устройство | ||
.desc = Мощная машина для индуктивной зарядки роботизированных существ. Она очень сильно нагревается! | ||
ent-IndustrialChargerCircuitboard = плата промышленного зарядного устройства | ||
.desc = Машинная печатная плата для промышленного зарядного устройства |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters