Skip to content

Commit 4a9433e

Browse files
committed
Fix to make all scrubbers vents and sensors show the correct address prefix
1 parent 3a7a384 commit 4a9433e

4 files changed

Lines changed: 37 additions & 25 deletions

File tree

Resources/Prototypes/Entities/Structures/Piping/Atmospherics/gas_pipe_sensor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
placement:
77
mode: AlignAtmosPipeLayers
88
components:
9+
# Starlight-edit: moved off AirSensorBase
10+
- type: DeviceNetwork
11+
prefix: device-address-prefix-sensor
912
- type: Sprite
1013
sprite: _Carpmosia/Structures/Piping/Atmospherics/gas_pipe_sensor.rsi # Carpmosia-edit - 5 pipe layers
1114
drawdepth: BelowFloor

Resources/Prototypes/Entities/Structures/Specific/Atmospherics/sensor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
deviceNetId: AtmosDevices
77
receiveFrequencyId: AtmosMonitor
88
transmitFrequencyId: AtmosMonitor
9-
prefix: device-address-prefix-sensor
9+
# Starlight-edit: prefix moved to the sensors themselves - vents and scrubbers
10+
# inherit this base for its monitoring, and a variant listing it as an earlier
11+
# parent used to inherit the sensor address with it
1012
sendBroadcastAttemptEvent: true
1113
examinableAddress: true
1214
- type: WiredNetworkConnection
@@ -55,6 +57,9 @@
5557
placement:
5658
mode: SnapgridCenter
5759
components:
60+
# Starlight-edit: moved off AirSensorBase
61+
- type: DeviceNetwork
62+
prefix: device-address-prefix-sensor
5863
- type: Transform
5964
anchored: true
6065
- type: Damageable

Resources/Prototypes/_Starlight/Entities/Structures/Specific/Atmospherics/chamber.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@
4444

4545
# Gas Vent
4646

47-
# Carries nothing but the layer map, so the vanilla alt sprite is the only one in
48-
# the alts' parent lists and the placement ghost draws it at the right offset.
47+
# Inherits the thresholds so no variant has to list the sensor base as a second
48+
# parent. Declares no sprite, so the vanilla alt sprite reaches the placement ghost.
4949
- type: entity
5050
abstract: true
51+
parent: AirSensorChamberBase
5152
id: GasVentPumpChamberBase
5253
components:
5354
- type: AtmosPipeLayers
@@ -59,32 +60,32 @@
5960
Quinary: GasVentPumpChamberAlt4
6061

6162
- type: entity
62-
parent: [AirSensorChamberBase, GasVentPumpChamberBase, GasVentPump]
63+
parent: [GasVentPumpChamberBase, GasVentPump]
6364
id: GasVentPumpChamber
6465
placement:
6566
mode: AlignAtmosPipeLayers
6667
description: An air vent set up for use in chambers. It only alarms on extreme pressure.
6768

6869
- type: entity
69-
parent: [AirSensorChamberBase, GasVentPumpChamberBase, GasVentPumpAlt1]
70+
parent: [GasVentPumpChamberBase, GasVentPumpAlt1]
7071
id: GasVentPumpChamberAlt1
7172
categories: [ HideSpawnMenu ]
7273
description: An air vent set up for use in chambers. It only alarms on extreme pressure.
7374

7475
- type: entity
75-
parent: [AirSensorChamberBase, GasVentPumpChamberBase, GasVentPumpAlt2]
76+
parent: [GasVentPumpChamberBase, GasVentPumpAlt2]
7677
id: GasVentPumpChamberAlt2
7778
categories: [ HideSpawnMenu ]
7879
description: An air vent set up for use in chambers. It only alarms on extreme pressure.
7980

8081
- type: entity
81-
parent: [AirSensorChamberBase, GasVentPumpChamberBase, GasVentPumpAlt3]
82+
parent: [GasVentPumpChamberBase, GasVentPumpAlt3]
8283
id: GasVentPumpChamberAlt3
8384
categories: [ HideSpawnMenu ]
8485
description: An air vent set up for use in chambers. It only alarms on extreme pressure.
8586

8687
- type: entity
87-
parent: [AirSensorChamberBase, GasVentPumpChamberBase, GasVentPumpAlt4]
88+
parent: [GasVentPumpChamberBase, GasVentPumpAlt4]
8889
id: GasVentPumpChamberAlt4
8990
categories: [ HideSpawnMenu ]
9091
description: An air vent set up for use in chambers. It only alarms on extreme pressure.
@@ -93,6 +94,7 @@
9394

9495
- type: entity
9596
abstract: true
97+
parent: AirSensorChamberBase
9698
id: GasVentScrubberChamberBase
9799
components:
98100
# Scrubbers default to enabled and nothing switches them off at map init, so a
@@ -108,32 +110,32 @@
108110
Quinary: GasVentScrubberChamberAlt4
109111

110112
- type: entity
111-
parent: [AirSensorChamberBase, GasVentScrubberChamberBase, GasVentScrubber]
113+
parent: [GasVentScrubberChamberBase, GasVentScrubber]
112114
id: GasVentScrubberChamber
113115
placement:
114116
mode: AlignAtmosPipeLayers
115117
description: An air scrubber set up for use in chambers. It only alarms on extreme pressure.
116118

117119
- type: entity
118-
parent: [AirSensorChamberBase, GasVentScrubberChamberBase, GasVentScrubberAlt1]
120+
parent: [GasVentScrubberChamberBase, GasVentScrubberAlt1]
119121
id: GasVentScrubberChamberAlt1
120122
categories: [ HideSpawnMenu ]
121123
description: An air scrubber set up for use in chambers. It only alarms on extreme pressure.
122124

123125
- type: entity
124-
parent: [AirSensorChamberBase, GasVentScrubberChamberBase, GasVentScrubberAlt2]
126+
parent: [GasVentScrubberChamberBase, GasVentScrubberAlt2]
125127
id: GasVentScrubberChamberAlt2
126128
categories: [ HideSpawnMenu ]
127129
description: An air scrubber set up for use in chambers. It only alarms on extreme pressure.
128130

129131
- type: entity
130-
parent: [AirSensorChamberBase, GasVentScrubberChamberBase, GasVentScrubberAlt3]
132+
parent: [GasVentScrubberChamberBase, GasVentScrubberAlt3]
131133
id: GasVentScrubberChamberAlt3
132134
categories: [ HideSpawnMenu ]
133135
description: An air scrubber set up for use in chambers. It only alarms on extreme pressure.
134136

135137
- type: entity
136-
parent: [AirSensorChamberBase, GasVentScrubberChamberBase, GasVentScrubberAlt4]
138+
parent: [GasVentScrubberChamberBase, GasVentScrubberAlt4]
137139
id: GasVentScrubberChamberAlt4
138140
categories: [ HideSpawnMenu ]
139141
description: An air scrubber set up for use in chambers. It only alarms on extreme pressure.

Resources/Prototypes/_Starlight/Entities/Structures/Specific/Atmospherics/sauna.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@
4242

4343
# Gas Vent
4444

45-
# Carries nothing but the layer map, so the vanilla alt sprite is the only one in
46-
# the alts' parent lists and the placement ghost draws it at the right offset.
45+
# Inherits the thresholds so no variant has to list the sensor base as a second
46+
# parent. Declares no sprite, so the vanilla alt sprite reaches the placement ghost.
4747
- type: entity
4848
abstract: true
49+
parent: AirSensorSaunaBase
4950
id: GasVentPumpSaunaBase
5051
components:
5152
- type: AtmosPipeLayers
@@ -57,32 +58,32 @@
5758
Quinary: GasVentPumpSaunaAlt4
5859

5960
- type: entity
60-
parent: [AirSensorSaunaBase, GasVentPumpSaunaBase, GasVentPump]
61+
parent: [GasVentPumpSaunaBase, GasVentPump]
6162
id: GasVentPumpSauna
6263
placement:
6364
mode: AlignAtmosPipeLayers
6465
description: An air vent set up for use in saunas. It ignores humidity, and heat until it turns harmful.
6566

6667
- type: entity
67-
parent: [AirSensorSaunaBase, GasVentPumpSaunaBase, GasVentPumpAlt1]
68+
parent: [GasVentPumpSaunaBase, GasVentPumpAlt1]
6869
id: GasVentPumpSaunaAlt1
6970
categories: [ HideSpawnMenu ]
7071
description: An air vent set up for use in saunas. It ignores humidity, and heat until it turns harmful.
7172

7273
- type: entity
73-
parent: [AirSensorSaunaBase, GasVentPumpSaunaBase, GasVentPumpAlt2]
74+
parent: [GasVentPumpSaunaBase, GasVentPumpAlt2]
7475
id: GasVentPumpSaunaAlt2
7576
categories: [ HideSpawnMenu ]
7677
description: An air vent set up for use in saunas. It ignores humidity, and heat until it turns harmful.
7778

7879
- type: entity
79-
parent: [AirSensorSaunaBase, GasVentPumpSaunaBase, GasVentPumpAlt3]
80+
parent: [GasVentPumpSaunaBase, GasVentPumpAlt3]
8081
id: GasVentPumpSaunaAlt3
8182
categories: [ HideSpawnMenu ]
8283
description: An air vent set up for use in saunas. It ignores humidity, and heat until it turns harmful.
8384

8485
- type: entity
85-
parent: [AirSensorSaunaBase, GasVentPumpSaunaBase, GasVentPumpAlt4]
86+
parent: [GasVentPumpSaunaBase, GasVentPumpAlt4]
8687
id: GasVentPumpSaunaAlt4
8788
categories: [ HideSpawnMenu ]
8889
description: An air vent set up for use in saunas. It ignores humidity, and heat until it turns harmful.
@@ -94,6 +95,7 @@
9495
# inherit it without the primary's sprite.
9596
- type: entity
9697
abstract: true
98+
parent: AirSensorSaunaBase
9799
id: GasVentScrubberSaunaBase
98100
components:
99101
- type: AtmosPipeLayers
@@ -124,32 +126,32 @@
124126
- ZXA
125127

126128
- type: entity
127-
parent: [AirSensorSaunaBase, GasVentScrubberSaunaBase, GasVentScrubber]
129+
parent: [GasVentScrubberSaunaBase, GasVentScrubber]
128130
id: GasVentScrubberSauna
129131
placement:
130132
mode: AlignAtmosPipeLayers
131133
description: An air scrubber set up for use in saunas. It leaves water vapour where it is.
132134

133135
- type: entity
134-
parent: [AirSensorSaunaBase, GasVentScrubberSaunaBase, GasVentScrubberAlt1]
136+
parent: [GasVentScrubberSaunaBase, GasVentScrubberAlt1]
135137
id: GasVentScrubberSaunaAlt1
136138
categories: [ HideSpawnMenu ]
137139
description: An air scrubber set up for use in saunas. It leaves water vapour where it is.
138140

139141
- type: entity
140-
parent: [AirSensorSaunaBase, GasVentScrubberSaunaBase, GasVentScrubberAlt2]
142+
parent: [GasVentScrubberSaunaBase, GasVentScrubberAlt2]
141143
id: GasVentScrubberSaunaAlt2
142144
categories: [ HideSpawnMenu ]
143145
description: An air scrubber set up for use in saunas. It leaves water vapour where it is.
144146

145147
- type: entity
146-
parent: [AirSensorSaunaBase, GasVentScrubberSaunaBase, GasVentScrubberAlt3]
148+
parent: [GasVentScrubberSaunaBase, GasVentScrubberAlt3]
147149
id: GasVentScrubberSaunaAlt3
148150
categories: [ HideSpawnMenu ]
149151
description: An air scrubber set up for use in saunas. It leaves water vapour where it is.
150152

151153
- type: entity
152-
parent: [AirSensorSaunaBase, GasVentScrubberSaunaBase, GasVentScrubberAlt4]
154+
parent: [GasVentScrubberSaunaBase, GasVentScrubberAlt4]
153155
id: GasVentScrubberSaunaAlt4
154156
categories: [ HideSpawnMenu ]
155157
description: An air scrubber set up for use in saunas. It leaves water vapour where it is.

0 commit comments

Comments
 (0)