air sensor entity

This commit is contained in:
vulppine
2022-08-19 05:53:49 -07:00
parent 9b3df8740f
commit 43462c7ede
7 changed files with 52 additions and 21 deletions

View File

@@ -7,7 +7,7 @@
- type: AtmosAlarmable
alarmedBy:
- FireAlarm
- GasVentPump # TODO: No
- AirSensor
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: DeviceNetwork

View File

@@ -32,27 +32,8 @@
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-vent
sendBroadcastAttemptEvent: true
- type: DeviceList
- type: WiredNetworkConnection
- type: AtmosAlarmable
alarmedBy:
- GasVentPump # TODO: No
- type: AtmosDevice
- type: AtmosMonitor
temperatureThreshold: stationTemperature
pressureThreshold: stationPressure
gasThresholds:
Oxygen: stationOxygen
Nitrogen: ignore
CarbonDioxide: stationCO2
Plasma: danger # everything below is usually bad
Tritium: danger
WaterVapor: danger
Miasma: danger
NitrousOxide: danger
Frezon: danger
- type: AccessReader
access: [ [ "Atmospherics" ] ]
- type: Sprite
netsync: false
drawdepth: FloorObjects

View File

@@ -0,0 +1,37 @@
- type: entity
id: AirSensor
name: air sensor
description: Air sensor. It senses air.
components:
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-sensor
sendBroadcastAttemptEvent: true
- type: DeviceList
- type: WiredNetworkConnection
- type: AtmosDevice
- type: AtmosMonitor
temperatureThreshold: stationTemperature
pressureThreshold: stationPressure
gasThresholds:
Oxygen: stationOxygen
Nitrogen: ignore
CarbonDioxide: stationCO2
Plasma: danger # everything below is usually bad
Tritium: danger
WaterVapor: danger
Miasma: danger
NitrousOxide: danger
Frezon: danger
- type: AccessReader
access: [ [ "Atmospherics" ] ]
- type: Sprite
netsync: false
drawdepth: FloorObjects
sprite: Structures/Specific/Atmospherics/sensor.rsi
layers:
- state: gsensor1

View File

@@ -17,7 +17,7 @@
- type: WiredNetworkConnection
- type: DeviceList
- type: AtmosAlarmable
alarmedBy: ["GasVentPump"]
alarmedBy: ["AirSensor"]
- type: AtmosDevice
- type: AirAlarm
- type: Clickable

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

View File

@@ -0,0 +1,13 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC 3.0 BY-SA",
"copyright": "Taken from /tg/station on commit https://github.com/tgstation/tgstation/commit/1dd5021b2c5b64e954935bdf77bc973c34016a04",
"states": [
{ "name": "gsensor0" },
{ "name": "gsensor1" }
]
}