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:
42
Resources/Prototypes/Entities/Objects/Fun/candy_bucket.yml
Normal file
42
Resources/Prototypes/Entities/Objects/Fun/candy_bucket.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
- type: entity
|
||||
name: "candy bucket"
|
||||
parent: BaseItem
|
||||
id: CandyBucket
|
||||
description: A festive bucket for all your treats.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Fun/candy_bucket.rsi
|
||||
layers:
|
||||
- state: empty_icon
|
||||
map: [ "enum.ToggleVisuals.Layer" ]
|
||||
- type: ContainerHeld
|
||||
threshold: 1
|
||||
- type: Item
|
||||
heldPrefix: empty
|
||||
size: 20
|
||||
- type: Appearance
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.ToggleVisuals.Toggled:
|
||||
enum.ToggleVisuals.Layer:
|
||||
True: {state: full_icon}
|
||||
False: {state: empty_icon}
|
||||
- type: Storage
|
||||
maxItemSize: Small
|
||||
maxTotalWeight: 10
|
||||
whitelist:
|
||||
components:
|
||||
- Pill
|
||||
tags:
|
||||
- FoodSnack
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
storagebase: !type:Container
|
||||
ents: []
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.StorageUiKey.Key
|
||||
type: StorageBoundUserInterface
|
||||
# to prevent bag open/honk spam
|
||||
- type: UseDelay
|
||||
delay: 0.5
|
||||
Reference in New Issue
Block a user