malf killer 9000 (robotics console) (#24855)

* create devicenet frequencies

* create borg transponder and give it to all nt borgs

* add robotics console

* actually implement battery charge display + some fix

* tab

* real explosion

* little safer

* disable destroy button clientside too when on cooldown

* m

* how do i do this when i review things...

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>

* webedit ops

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>

* ui updates

* oracle java

* do a thing

* update ui when a borg times out

* maybe fix test

* add IsLocked to LockSystem

* make destroying gib the chassis again, so emagging isnt sus

* use locking

* require using alt click to unlock so normal click is open ui

* the

* use LogType.Action

* take this L

* pocket lint?

* sharer

* pro ops

* robor pushmarkup

* m

* update and make it not use prototype anymore

* frame0

* update yaml

* untroll

* bad

* h

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
deltanedas
2024-05-09 06:36:07 +00:00
committed by GitHub
parent 24ab5c0982
commit b33730db22
21 changed files with 891 additions and 4 deletions

View File

@@ -0,0 +1,53 @@
using Content.Shared.Radio;
using Content.Shared.Robotics;
using Content.Shared.Robotics.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared.Robotics.Components;
/// <summary>
/// Robotics console for managing borgs.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedRoboticsConsoleSystem))]
[AutoGenerateComponentState, AutoGenerateComponentPause]
public sealed partial class RoboticsConsoleComponent : Component
{
/// <summary>
/// Address and data of each cyborg.
/// </summary>
[DataField]
public Dictionary<string, CyborgControlData> Cyborgs = new();
/// <summary>
/// After not responding for this length of time borgs are removed from the console.
/// </summary>
[DataField]
public TimeSpan Timeout = TimeSpan.FromSeconds(10);
/// <summary>
/// Radio channel to send messages on.
/// </summary>
[DataField]
public ProtoId<RadioChannelPrototype> RadioChannel = "Science";
/// <summary>
/// Radio message sent when destroying a borg.
/// </summary>
[DataField]
public LocId DestroyMessage = "robotics-console-cyborg-destroyed";
/// <summary>
/// Cooldown on destroying borgs to prevent complete abuse.
/// </summary>
[DataField]
public TimeSpan DestroyCooldown = TimeSpan.FromSeconds(30);
/// <summary>
/// When a borg can next be destroyed.
/// </summary>
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
[AutoNetworkedField, AutoPausedField]
public TimeSpan NextDestroy = TimeSpan.Zero;
}