Climbing refactor (#20516)

This commit is contained in:
metalgearsloth
2023-10-11 10:41:11 +11:00
committed by GitHub
parent ab75941bc0
commit edbfef22d6
30 changed files with 637 additions and 661 deletions

View File

@@ -0,0 +1,35 @@
using Content.Shared.Damage;
namespace Content.Shared.Climbing.Components;
/// <summary>
/// Glass tables shatter and stun you when climbed on.
/// This is a really entity-specific behavior, so opted to make it
/// not very generalized with regards to naming.
/// </summary>
[RegisterComponent, Access(typeof(Systems.ClimbSystem))]
public sealed partial class GlassTableComponent : Component
{
/// <summary>
/// How much damage should be given to the climber?
/// </summary>
[DataField("climberDamage")]
public DamageSpecifier ClimberDamage = default!;
/// <summary>
/// How much damage should be given to the table when climbed on?
/// </summary>
[DataField("tableDamage")]
public DamageSpecifier TableDamage = default!;
/// <summary>
/// How much mass should be needed to break the table?
/// </summary>
[DataField("tableMassLimit")]
public float MassLimit;
/// <summary>
/// How long should someone who climbs on this table be stunned for?
/// </summary>
public float StunTime = 2.0f;
}