Toggleable Hardsuit Helmets (#7559)

This commit is contained in:
Leon Friedrich
2022-04-23 15:31:45 +12:00
committed by GitHub
parent 83b47c43c0
commit 1141c19d76
34 changed files with 449 additions and 49 deletions

View File

@@ -92,7 +92,7 @@ namespace Content.Server.Administration.Commands
{
foreach (var slot in slotDefinitions)
{
invSystem.TryUnequip(target, slot.Name, true, true, inventoryComponent);
invSystem.TryUnequip(target, slot.Name, true, true, false, inventoryComponent);
var gearStr = startingGear.GetGear(slot.Name, profile);
if (gearStr == string.Empty)
{

View File

@@ -16,9 +16,6 @@ namespace Content.Server.Clothing.Components
[DataField("HeatResistance")]
private int _heatResistance = 323;
[DataField("quickEquip")]
public bool QuickEquip = true;
[ViewVariables(VVAccess.ReadWrite)]
public int HeatResistance => _heatResistance;
}

View File

@@ -98,7 +98,7 @@ namespace Content.Server.Disease.Zombie
}
if (TryComp<ServerInventoryComponent>(uid, out var servInvComp))
_serverInventory.TryUnequip(uid, "gloves", true, true, servInvComp);
_serverInventory.TryUnequip(uid, "gloves", true, true, predicted: false, servInvComp);
_popupSystem.PopupEntity(Loc.GetString("zombie-transform", ("target", uid)), uid, Filter.Pvs(uid));