Candy Bucket for Halloween (#21257)
* Added candy bucket and component to update appearance of held containers akin to it * cleanup newline * newline was load-bearing * moved component to Shared, cleanup * newline is spooky * You build and run without errors, stop pretending otherwise * Updated for new storage system in master branch
This commit is contained in:
14
Content.Shared/ContainerHeld/ContainerHeldComponent.cs
Normal file
14
Content.Shared/ContainerHeld/ContainerHeldComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Content.Shared.ContainerHeld;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class ContainerHeldComponent: Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The amount of weight needed to be in the container
|
||||
/// in order for it to toggle it's appearance
|
||||
/// to ToggleVisuals.Toggled = true, and
|
||||
/// SetHeldPrefix() to "full" instead of "empty".
|
||||
/// </summary>
|
||||
[DataField("threshold")]
|
||||
public int Threshold { get; private set; } = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user