Skip to content

Commit

Permalink
Added gas pipe analyzer
Browse files Browse the repository at this point in the history
(cherry picked from commit 1ed459840c2167968042563ff6b6458e37d568c4)
  • Loading branch information
chromiumboy authored and zelezniciar1 committed Dec 4, 2024
1 parent 0fd22da commit e381c28
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Content.Shared/Atmos/Components/GasPipeAnalyzerComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Robust.Shared.GameStates;

namespace Content.Shared.Atmos.Components;

[RegisterComponent, NetworkedComponent]
public sealed partial class GasPipeAnalyzerComponent : Component
{

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
- type: entity
parent: BaseItem
id: GasPipeAnalyzer
name: gas pipe analyzer
description: A device that reports the characteristics of the gas in the attached pipe network.
placement:
mode: SnapgridCenter
suffix: General
components:
- type: Sprite
sprite: Objects/Devices/station_beacon.rsi
drawdepth: BelowFloor
layers:
- state: blink
map: ["base"]
- type: Appearance
- type: GenericVisualizer
visuals:
enum.NavMapBeaconVisuals.Enabled:
base:
True: {state: blink}
False: {state: icon}
# - type: ActivatableUI
# key: enum.GasAnalyzerUiKey.Key
# - type: UserInterface
# interfaces:
# enum.GasAnalyzerUiKey.Key:
# type: GasAnalyzerBoundUserInterface
- type: GasPipeAnalyzer
- type: Item
size: Small
- type: SubFloorHide
- type: Anchorable
- type: CollideOnAnchor
- type: Physics
canCollide: false
bodyType: static
- type: Transform
anchored: true
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
params:
volume: -8
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
offset: 0
- !type:DoActsBehavior
acts: ["Breakage"]
- type: StaticPrice
price: 25
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": 1,
"license": "CC0-1.0",
"copyright": "Created by chromiumboy (github) for SS14, based on the digital valve from /tg/",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "base"
},
{
"name": "lights"
},
{
"name": "blink",
"delays": [
[
1.0,
0.25
]
]
}
]
}

0 comments on commit e381c28

Please sign in to comment.