Skip to content

Commit 7c6e427

Browse files
committed
strippinghiddenentitycard
1 parent 002d38f commit 7c6e427

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Content.Client/Inventory/StrippableBoundUserInterface.cs

+13-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ public sealed class StrippableBoundUserInterface : BoundUserInterface
5252
[ViewVariables]
5353
private readonly EntityUid _virtualHiddenEntity;
5454

55+
// Stories-Cards-Start
56+
57+
[ViewVariables]
58+
private readonly EntityUid _virtualHiddenEntityCard;
59+
60+
[ViewVariables]
61+
private const string HiddenCardEntityID = "StrippingHiddenEntityCard";
62+
63+
// Stories-Cards-End
64+
5565
public StrippableBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
5666
{
5767
_tagSystem = EntMan.System<TagSystem>(); // Stories-Cards
@@ -61,6 +71,8 @@ public StrippableBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, u
6171
_strippable = EntMan.System<StrippableSystem>();
6272

6373
_virtualHiddenEntity = EntMan.SpawnEntity(HiddenPocketEntityId, MapCoordinates.Nullspace);
74+
75+
_virtualHiddenEntityCard = EntMan.SpawnEntity(HiddenCardEntityID, MapCoordinates.Nullspace); // Stories-Cards
6476
}
6577

6678
protected override void Open()
@@ -180,7 +192,7 @@ private void AddHandButton(Hand hand)
180192
var entity = hand.HeldEntity;
181193

182194
if (entity != null && _tagSystem.HasTag(entity.Value, "Card"))
183-
entity = _virtualHiddenEntity;
195+
entity = _virtualHiddenEntityCard;
184196

185197
UpdateEntityIcon(button, entity);
186198

0 commit comments

Comments
 (0)