shield values examine (#17245)

This commit is contained in:
Slava0135
2023-06-17 05:07:58 +03:00
committed by GitHub
parent 99cfe77557
commit 8ed4dcf0fb
7 changed files with 172 additions and 171 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Actions.ActionTypes;
using Content.Shared.Damage;
using Robust.Shared.Audio;
using Robust.Shared.Physics.Collision.Shapes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
@@ -31,24 +32,22 @@ public sealed class BlockingComponent : Component
/// <summary>
/// The shape of the blocking fixture that will be dynamically spawned
/// </summary>
[ViewVariables(VVAccess.ReadWrite)] [DataField("shape")]
[DataField("shape"), ViewVariables(VVAccess.ReadWrite)]
public IPhysShape Shape = new PhysShapeCircle(0.5f);
/// <summary>
/// The damage modifer to use while passively blocking
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("passiveBlockModifier")]
public string PassiveBlockDamageModifer = "Metallic";
[DataField("passiveBlockModifier", required: true)]
public DamageModifierSet PassiveBlockDamageModifer = default!;
/// <summary>
/// The damage modifier to use while actively blocking.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("activeBlockModifier")]
public string ActiveBlockDamageModifier = "Metallic";
[DataField("activeBlockModifier", required: true)]
public DamageModifierSet ActiveBlockDamageModifier = default!;
[DataField("blockingToggleActionId", customTypeSerializer:typeof(PrototypeIdSerializer<InstantActionPrototype>))]
[DataField("blockingToggleActionId", customTypeSerializer: typeof(PrototypeIdSerializer<InstantActionPrototype>))]
public string BlockingToggleActionId = "ToggleBlock";
[DataField("blockingToggleAction")]