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:
Bixkitts
2023-10-31 16:54:41 +01:00
committed by GitHub
parent 77db8b166a
commit 74f1098008
10 changed files with 132 additions and 0 deletions

View 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;
}