Skip to content

Commit

Permalink
implement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya246 committed Sep 20, 2024
1 parent 99101f2 commit cd2d67d
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cd2d67d

Please sign in to comment.