Fixes ninja not being able to use abilities (#23748)
* Fixes ninja not being able to use abilities * This was for testing
This commit is contained in:
@@ -4,6 +4,7 @@ using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -35,12 +36,18 @@ public sealed partial class NinjaSuitComponent : Component
|
||||
public SoundSpecifier RevealSound = new SoundPathSpecifier("/Audio/Effects/chime.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// How long to disable all abilities for when revealed.
|
||||
/// This adds a UseDelay to the ninja so it should not be set by anything else.
|
||||
/// How long to disable all abilities when revealed.
|
||||
/// Normally, ninjas are revealed when attacking or getting damaged.
|
||||
/// </summary>
|
||||
[DataField("disableTime")]
|
||||
public TimeSpan DisableTime = TimeSpan.FromSeconds(5);
|
||||
|
||||
/// <summary>
|
||||
/// Time at which we will be able to use our abilities again
|
||||
/// </summary>
|
||||
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
||||
public TimeSpan DisableCooldown;
|
||||
|
||||
/// <summary>
|
||||
/// The action id for creating throwing stars.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user