forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29b88db
commit 74a16c6
Showing
14 changed files
with
562 additions
and
405 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Content.Server/Corvax/HiddenDescription/HiddenDescriptionContainerShowerComponent.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,7 @@ | ||
namespace Content.Server.Corvax.HiddenDescription; | ||
|
||
/// <summary> | ||
/// Shows hidden description from entity in container | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class HiddenDescriptionContainerShowerComponent : Component { } |
32 changes: 32 additions & 0 deletions
32
Content.Server/Corvax/HiddenDescription/HiddenDescriptionContainerShowerSystem.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.Shared.Examine; | ||
using Robust.Server.Containers; | ||
|
||
namespace Content.Server.Corvax.HiddenDescription; | ||
|
||
public sealed class HiddenDescriptionContainerShowerSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly ContainerSystem _container = default!; | ||
[Dependency] private readonly HiddenDescriptionSystem _hiddenDescription = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<HiddenDescriptionContainerShowerComponent, ExaminedEvent>(OnExamine); | ||
} | ||
|
||
private void OnExamine(Entity<HiddenDescriptionContainerShowerComponent> entity, ref ExaminedEvent args) | ||
{ | ||
foreach (var container in _container.GetAllContainers(entity.Owner)) | ||
{ | ||
foreach (var containedEntity in container.ContainedEntities) | ||
{ | ||
if (TryComp<HiddenDescriptionComponent>(containedEntity, out var hiddenDescription)) | ||
{ | ||
_hiddenDescription.PushExamineInformation(hiddenDescription, ref args); | ||
} | ||
} | ||
} | ||
} | ||
} |
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
66 changes: 33 additions & 33 deletions
66
Resources/Locale/ru-RU/corvax/hidden-description/hiddenDescription.ftl
Large diffs are not rendered by default.
Oops, something went wrong.
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
8 changes: 4 additions & 4 deletions
8
Resources/Locale/ru-RU/ss14-ru/prototypes/entities/objects/misc/subdermal_implants.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
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
Oops, something went wrong.