Some work on the mess that is this power code.
Jesus. Tons of fixes, refactors and other things. The powernet's code is still awful though.
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
- type: PowerProvider
|
||||
Range: 5
|
||||
Priority: Provider
|
||||
Load: 0
|
||||
|
||||
- type: entity
|
||||
parent: WPPnobattery
|
||||
|
||||
17
Resources/Prototypes/Entities/PoweredLighting.yml
Normal file
17
Resources/Prototypes/Entities/PoweredLighting.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- type: entity
|
||||
name: Light
|
||||
id: poweredlight
|
||||
parent: __engine_wall_light
|
||||
components:
|
||||
# So we can click on it for deletion.
|
||||
- type: BoundingBox
|
||||
- type: Sprite
|
||||
texture: Objects/wall_light_off.png
|
||||
|
||||
- type: PowerDevice
|
||||
load: 1
|
||||
priority: Low
|
||||
|
||||
- type: PoweredLight
|
||||
- type: PointLight
|
||||
state: Off
|
||||
@@ -81,3 +81,4 @@
|
||||
texture: Objects/multitool.png
|
||||
- type: Icon
|
||||
texture: Objects/multitool.png
|
||||
- type: PowerDebugTool
|
||||
|
||||
Reference in New Issue
Block a user