v1.6.17.0 (Unto the Breach update)

This commit is contained in:
Regalis11
2024-10-22 17:29:04 +03:00
parent e74b3cdb17
commit 6e6c17e100
417 changed files with 17166 additions and 5870 deletions
@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Barotrauma.Networking;
using Microsoft.Xna.Framework;
@@ -310,7 +310,13 @@ namespace Barotrauma.Items.Components
return wire.BackingWire.TryUnwrap(out var backingWire) ? backingWire.Name : "a wire";
}
bool CanAccessAndUnlocked(Client client) => item.CanClientAccess(client) && !Locked;
bool CanAccessAndUnlocked(Client client) =>
!IsLocked() &&
item.CanClientAccess(client) &&
ClientHasRequiredItems(client);
bool ClientHasRequiredItems(Client client) =>
client.Character is { } chara && HasRequiredItems(chara, addMessage: false);
}
/// <summary>