Split various drone behaviors out of drone component (innate tool, unpowered flashlight) (#10474)

This commit is contained in:
Rane
2022-08-31 22:09:20 -04:00
committed by GitHub
parent 45349f159d
commit 7bee0063a6
9 changed files with 129 additions and 81 deletions

View File

@@ -1,21 +1,8 @@
using Content.Shared.Storage;
namespace Content.Server.Drone.Components
{
[RegisterComponent]
public sealed class DroneComponent : Component
{
[DataField("tools")] public List<EntitySpawnEntry> Tools = new();
public List<EntityUid> ToolUids = new();
public bool AlreadyAwoken = false;
public float InteractionBlockRange = 2.15f;
/// <summary>
/// If you are using drone component for
/// something that shouldn't have restrictions set this to
/// false.
/// </summary>
[DataField("applyLaws")]
public bool ApplyLaws = true;
}
}