Makes thieving gloves sneakier (#21398)

* Hidden DoAfters

* Fix formatting warnings

* Hide progress bar and pickup animation

* Copy Hidden field in copy constructor
This commit is contained in:
TemporalOroboros
2023-11-02 19:10:58 -07:00
committed by GitHub
parent 03922175a7
commit 19614453d9
4 changed files with 39 additions and 13 deletions

View File

@@ -40,6 +40,12 @@ public sealed partial class DoAfterArgs
public NetEntity? NetUsed;
/// <summary>
/// Whether the progress bar for this DoAfter should be hidden from other players.
/// </summary>
[DataField]
public bool Hidden;
#region Event options
/// <summary>
/// The event that will get raised when the DoAfter has finished. If null, this will simply raise a <see cref="SimpleDoAfterEvent"/>
@@ -239,6 +245,7 @@ public sealed partial class DoAfterArgs
Delay = other.Delay;
Target = other.Target;
Used = other.Used;
Hidden = other.Hidden;
EventTarget = other.EventTarget;
Broadcast = other.Broadcast;
NeedHand = other.NeedHand;