Power improvements:

* crashes fixed
* made lights an RSI.
This commit is contained in:
Pieter-Jan Briers
2018-05-27 21:45:31 +02:00
parent 89d8208abd
commit e36033a3ac
12 changed files with 99 additions and 46 deletions

View File

@@ -55,9 +55,9 @@
- type: Icon
texture: Objects/provider.png
- type: PowerProvider
Range: 5
Priority: Provider
Load: 0
range: 5
priority: Provider
load: 0
- type: entity
parent: WPPnobattery
@@ -66,10 +66,10 @@
description: Supplies power at range, has a backup battery just in case
components:
- type: PowerStorage
Capacity: 1000
Charge: 1000
ChargeRate: 200
ChargePowernet: false
capacity: 1000
charge: 1000
chargerate: 200
chargepowernet: false
- type: entity
@@ -86,11 +86,11 @@
- type: Icon
texture: Objects/storage.png
- type: PowerStorage
Capacity: 3000
Charge: 1000
ChargeRate: 200
DistributionRate: 400
ChargePowernet: true
capacity: 3000
charge: 1000
chargerate: 200
distributionrate: 400
chargepowernet: true
- type: entity
id: WiredMachine
@@ -106,9 +106,9 @@
- type: Icon
texture: Objects/wiredmachine.png
- type: PowerDevice
Drawtype: Node
Load: 100
Priority: High
drawtype: Node
load: 100
priority: High
- type: entity
id: WirelessMachine
@@ -124,6 +124,6 @@
- type: Icon
texture: Objects/wirelessmachine.png
- type: PowerDevice
Drawtype: Both
Load: 200
Priority: Low
drawtype: Both
load: 200
priority: Low

View File

@@ -1,17 +1,28 @@
- type: entity
name: Light
id: poweredlight
parent: __engine_wall_light
components:
- type: Transform
- type: Clickable
# So we can click on it for deletion.
- type: BoundingBox
- type: Sprite
texture: Objects/wall_light_off.png
sprite: Objects/lighting.rsi
state: off
- type: Icon
sprite: Objects/lighting.rsi
state: off
- type: PointLight
state: Off
radius: 8
energy: 1.2
offset: "0, -16"
color: "#DCDCC6"
- type: PowerDevice
load: 1
load: 50
priority: Low
- type: PoweredLight
- type: PointLight
state: Off