* Refactor disarms - Move client stuff to shared - Cleanup a bunch of stuff - Ref events - Fix the swing sound mispredict (I noticed it on target dummies). * Revert this change * minor review * Rebiew --------- Co-authored-by: Milon <milonpl.git@proton.me>
18 lines
482 B
C#
18 lines
482 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.CombatMode;
|
|
|
|
/// <summary>
|
|
/// Applies a malus to disarm attempts against this item.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class DisarmMalusComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// So, disarm chances are a % chance represented as a value between 0 and 1.
|
|
/// This default would be a 30% penalty to that.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Malus = 0.3f;
|
|
}
|