Reduce puddle tile friction (#16375)

This commit is contained in:
metalgearsloth
2023-05-14 01:45:53 +10:00
committed by GitHub
parent 8d03d25f27
commit cb7f73927d
8 changed files with 76 additions and 68 deletions

View File

@@ -1,14 +1,15 @@
namespace Content.Shared.Friction
using Robust.Shared.GameStates;
namespace Content.Shared.Friction;
[RegisterComponent, NetworkedComponent]
[Access(typeof(TileFrictionController)), AutoGenerateComponentState]
public sealed partial class TileFrictionModifierComponent : Component
{
[RegisterComponent]
[Access(typeof(TileFrictionController))]
public sealed class TileFrictionModifierComponent : Component
{
/// <summary>
/// Multiply the tilefriction cvar by this to get the body's actual tilefriction.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("modifier")]
public float Modifier;
}
/// <summary>
/// Multiply the tilefriction cvar by this to get the body's actual tilefriction.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("modifier"), AutoNetworkedField]
public float Modifier;
}