CatStation/Content.Shared/Spider/SpiderComponent.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

38 lines
1 KiB
C#

using Content.Shared.Actions;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Spider;
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedSpiderSystem))]
public sealed partial class SpiderComponent : Component
{
[DataField]
public EntProtoId WebPrototype = "SpiderWeb";
[DataField]
public EntProtoId WebAction = "ActionSpiderWeb";
[DataField] public EntityUid? Action;
/// <summary>
/// Whether the spider will spawn webs when not controlled by a player.
/// </summary>
[DataField]
public bool SpawnsWebsAsNonPlayer = true;
/// <summary>
/// The cooldown in seconds between web spawns when not controlled by a player.
/// </summary>
[DataField]
public TimeSpan WebSpawnCooldown = TimeSpan.FromSeconds(45f);
/// <summary>
/// The next time the spider can spawn a web when not controlled by a player.
/// </summary>
[DataField]
public TimeSpan? NextWebSpawn;
}
public sealed partial class SpiderWebActionEvent : InstantActionEvent { }