Energy Shield (#16996)
* energy shield * description edits * shields protect * small correction * say no to asteroid bees * fix * BlockModifier * fix * tweak * tweak * ops * fix * Update RobustToolbox * Revert "Update RobustToolbox" This reverts commit 55be82fe537490367e0afaf86365b0e274e6597e. * formatting
This commit is contained in:
34
Content.Shared/Item/ItemToggleComponent.cs
Normal file
34
Content.Shared/Item/ItemToggleComponent.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Server.Weapons.Melee.ItemToggle;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class ItemToggleComponent : Component
|
||||
{
|
||||
public bool Activated = false;
|
||||
|
||||
[DataField("activateSound")]
|
||||
public SoundSpecifier ActivateSound { get; set; } = default!;
|
||||
|
||||
[DataField("deActivateSound")]
|
||||
public SoundSpecifier DeActivateSound { get; set; } = default!;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("activatedDisarmMalus")]
|
||||
public float ActivatedDisarmMalus = 0.6f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("offSize")]
|
||||
public int OffSize = 1;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("onSize")]
|
||||
public int OnSize = 9999;
|
||||
}
|
||||
|
||||
[ByRefEvent]
|
||||
public readonly record struct ItemToggleActivatedEvent();
|
||||
|
||||
[ByRefEvent]
|
||||
public readonly record struct ItemToggleDeactivatedEvent();
|
||||
Reference in New Issue
Block a user