From cd2d67dcb123329e9a799a7097fd23c293351445 Mon Sep 17 00:00:00 2001 From: Ilya246 Date: Fri, 20 Sep 2024 13:24:35 +0400 Subject: [PATCH] implement --- .../Entities/Objects/Fun/spectral_locator.yml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml diff --git a/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml b/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml new file mode 100644 index 00000000000000..ff309958bbc361 --- /dev/null +++ b/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml @@ -0,0 +1,58 @@ +- type: entity + id: SpectralLocatorUnpowered + parent: BaseItem + name: spectral locator + description: A spooky device that reacts to nearby disembodied consciousnesses. + suffix: Unpowered + components: + - type: Sprite + sprite: Objects/Specific/Research/anomalylocator.rsi + layers: + - state: icon + - state: screen + shader: unshaded + visible: false + map: ["enum.ToggleVisuals.Layer"] + - type: Appearance + - type: GenericVisualizer + visuals: + enum.ToggleVisuals.Toggled: + enum.ToggleVisuals.Layer: + True: { visible: true } + False: { visible: false } + - type: ItemToggle + - type: ProximityBeeper + - type: ProximityDetector + range: 8 + criteria: + components: + - Ghost + - type: Beeper + isMuted: true + minBeepInterval: 0.1 + maxBeepInterval: 0.5 + beepSound: + path: "/Audio/Items/locator_beep.ogg" + params: + maxDistance: 1 + volume: -8 + +- type: entity + id: SpectralLocator + parent: [ SpectralLocatorUnpowered, PowerCellSlotSmallItem ] + suffix: Powered + components: + - type: PowerCellDraw + drawRate: 1 + useRate: 0 + - type: ToggleCellDraw + +- type: entity + id: SpectralLocatorEmpty + parent: SpectralLocator + suffix: Empty + components: + - type: ItemSlots + slots: + cell_slot: + name: power-cell-slot-component-slot-name-default