Make electrocutions look nicer on the power monitor. (#16965)

This commit is contained in:
Pieter-Jan Briers
2023-06-03 21:13:30 +02:00
committed by GitHub
parent 66aa0969ba
commit 042d3437e3
2 changed files with 17 additions and 6 deletions

View File

@@ -1,7 +1,17 @@
# Special entity used to attach to power networks as load when somebody gets electrocuted.
- type: entity
id: VirtualElectrocutionLoadBase
noSpawn: true
components:
- type: Electrocution
- type: Icon
# Shows up inside the power monitoring console.
sprite: "Structures/Wallmounts/signs.rsi"
state: "shock"
- type: entity
id: VirtualElectrocutionLoadHVPower
name: ELECTROCUTION ENTITY YOU SHOULD NOT SEE THIS
parent: VirtualElectrocutionLoadBase
noSpawn: true
components:
- type: NodeContainer
@@ -12,11 +22,10 @@
- type: PowerConsumer
voltage: High
drawRate: 50000
- type: Electrocution
- type: entity
id: VirtualElectrocutionLoadMVPower
name: ELECTROCUTION ENTITY YOU SHOULD NOT SEE THIS
parent: VirtualElectrocutionLoadBase
noSpawn: true
components:
- type: NodeContainer
@@ -27,11 +36,10 @@
- type: PowerConsumer
voltage: Medium
drawRate: 50000
- type: Electrocution
- type: entity
id: VirtualElectrocutionLoadApc
name: ELECTROCUTION ENTITY YOU SHOULD NOT SEE THIS
parent: VirtualElectrocutionLoadBase
noSpawn: true
components:
- type: NodeContainer
@@ -42,4 +50,3 @@
- type: PowerConsumer
voltage: Apc
drawRate: 50000
- type: Electrocution