Add RGB staff (#13125)

This commit is contained in:
Leon Friedrich
2023-01-02 13:01:40 +13:00
committed by GitHub
parent f980c44aca
commit b33d1f003b
15 changed files with 274 additions and 16 deletions

View File

@@ -0,0 +1,37 @@
# non-projectile / "gun" staves
# wand that gives lights an RGB effect.
- type: entity
id: RGBStaff
parent: BaseItem
name: RGB Staff
description: Helps fix the underabundance of RGB gear on the station.
components:
- type: Sprite
sprite: Objects/Weapons/Guns/Basic/staves.rsi
layers:
- state: nothing
- state: nothing-unshaded
shader: unshaded
- type: ActionOnInteract
entityActions:
- whitelist: { components: [ PointLight ] }
charges: 25
sound: /Audio/Magic/blink.ogg
event: !type:ChangeComponentsSpellEvent
toAdd:
- type: RgbLightController
- type: Item
inhandVisuals:
left:
- state: staff-inhand-left
- state: staff-inhand-left-unshaded
shader: unshaded
right:
- state: staff-inhand-right
- state: staff-inhand-right-unshaded
shader: unshaded
- type: RgbLightController
- type: PointLight
enabled: true
radius: 2