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:
AJCM-git
2024-01-08 20:15:00 -04:00
committed by GitHub
parent 20ae57a7f1
commit a3127748d1
5 changed files with 62 additions and 37 deletions

View File

@@ -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>