Make all implants unable to be implanted more than once (#26250)

* Make mind shield implants unable to be implanted more than once

* Default AllowMultipleImplants to false and update implanters.yml

* Use TryComp instead of TryGetComponent

* Deny multiple implants for fun implants too.

* Make comment more precise
This commit is contained in:
Simon
2024-03-26 01:16:19 +01:00
committed by GitHub
parent bf98a6a8bb
commit 771390bb67
3 changed files with 28 additions and 0 deletions

View File

@@ -70,6 +70,12 @@ public sealed partial class ImplanterComponent : Component
[DataField]
public (string, string) ImplantData;
/// <summary>
/// Determines if the same type of implant can be implanted into an entity multiple times.
/// </summary>
[DataField]
public bool AllowMultipleImplants = false;
/// <summary>
/// The <see cref="ItemSlot"/> for this implanter
/// </summary>