Mousetraps (#8440)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Flipp Syder
2022-05-25 13:16:34 -07:00
committed by GitHub
parent bd6725e9d9
commit a8f1ffd435
16 changed files with 315 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
namespace Content.Server.Mousetrap;
[RegisterComponent]
public sealed class MousetrapComponent : Component
{
[ViewVariables]
public bool IsActive;
/// <summary>
/// Set this to change where the
/// inflection point in the scaling
/// equation will occur.
/// The default is 10.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("massBalance")]
public int MassBalance = 10;
[DataField("ignoreDamageIfInventorySlotsFilled")]
public List<string> IgnoreDamageIfSlotFilled = new();
}