Skip to content

Commit 1a99508

Browse files
committed
Merge remote-tracking branch 'refs/remotes/wizards/master'
2 parents cdf4e8d + 11034a0 commit 1a99508

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ private void UpdateInventoryHotbar(InventorySlotsComponent? clientInv)
132132
if (clientInv == null)
133133
{
134134
_inventoryHotbar?.ClearButtons();
135+
if (_inventoryButton != null)
136+
_inventoryButton.Visible = false;
137+
135138
return;
136139
}
137140

@@ -409,6 +412,8 @@ private void UnloadSlots()
409412
{
410413
slotGroup.ClearButtons();
411414
}
415+
416+
UpdateInventoryHotbar(null);
412417
}
413418

414419
private void SpriteUpdated(SlotSpriteUpdate update)

Content.Server/Electrocution/Components/ElectrifiedComponent.cs

+31-1
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,63 @@ public sealed partial class ElectrifiedComponent : Component
1111
[DataField("enabled")]
1212
public bool Enabled = true;
1313

14+
/// <summary>
15+
/// Should player get damage on collide
16+
/// </summary>
1417
[DataField("onBump")]
1518
public bool OnBump = true;
1619

20+
/// <summary>
21+
/// Should player get damage on attack
22+
/// </summary>
1723
[DataField("onAttacked")]
1824
public bool OnAttacked = true;
1925

26+
/// <summary>
27+
/// When true - disables power if a window is present in the same tile
28+
/// </summary>
2029
[DataField("noWindowInTile")]
2130
public bool NoWindowInTile = false;
2231

32+
/// <summary>
33+
/// Should player get damage on interact with empty hand
34+
/// </summary>
2335
[DataField("onHandInteract")]
2436
public bool OnHandInteract = true;
2537

38+
/// <summary>
39+
/// Should player get damage on interact while holding an object in their hand
40+
/// </summary>
2641
[DataField("onInteractUsing")]
2742
public bool OnInteractUsing = true;
2843

44+
/// <summary>
45+
/// Indicates if the entity requires power to function
46+
/// </summary>
2947
[DataField("requirePower")]
3048
public bool RequirePower = true;
3149

50+
/// <summary>
51+
/// Indicates if the entity uses APC power
52+
/// </summary>
3253
[DataField("usesApcPower")]
3354
public bool UsesApcPower = false;
3455

56+
/// <summary>
57+
/// Identifier for the high voltage node.
58+
/// </summary>
3559
[DataField("highVoltageNode")]
3660
public string? HighVoltageNode;
3761

62+
/// <summary>
63+
/// Identifier for the medium voltage node.
64+
/// </summary>
3865
[DataField("mediumVoltageNode")]
3966
public string? MediumVoltageNode;
4067

68+
/// <summary>
69+
/// Identifier for the low voltage node.
70+
/// </summary>
4171
[DataField("lowVoltageNode")]
4272
public string? LowVoltageNode;
4373

@@ -69,7 +99,7 @@ public sealed partial class ElectrifiedComponent : Component
6999
public float ShockDamage = 7.5f;
70100

71101
/// <summary>
72-
/// Shock time, in seconds.
102+
/// Shock time, in seconds.
73103
/// </summary>
74104
[DataField("shockTime")]
75105
public float ShockTime = 8f;

0 commit comments

Comments
 (0)