Hristov & .60 changes - Hristov Rework, Part 2 (#31662)

* Initial commit

* Updated values to reflect new resistances

* Review fixes

* Review fixes

* LINQ BEGONETH
This commit is contained in:
SlamBamActionman
2025-02-04 22:55:09 +01:00
committed by GitHub
parent 87fa6a3b74
commit e58d031300
7 changed files with 140 additions and 12 deletions

View File

@@ -0,0 +1,23 @@
using Content.Shared.Wieldable;
using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
/// <summary>
/// Modifies the speed when an entity with this component is wielded.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedWieldableSystem)), AutoGenerateComponentState]
public sealed partial class SpeedModifiedOnWieldComponent : Component
{
/// <summary>
/// How much the wielder's sprint speed is modified when the component owner is wielded.
/// </summary>
[DataField, AutoNetworkedField]
public float SprintModifier = 1f;
/// <summary>
/// How much the wielder's walk speed is modified when the component owner is wielded.
/// </summary>
[DataField, AutoNetworkedField]
public float WalkModifier = 1f;
}