Power improvements:
* crashes fixed * made lights an RSI.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
21
Resources/Textures/Objects/lighting.rsi/meta.json
Normal file
21
Resources/Textures/Objects/lighting.rsi/meta.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "on",
|
||||
"select": [],
|
||||
"flags": {},
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "off",
|
||||
"select": [],
|
||||
"flags": {},
|
||||
"directions": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Objects/lighting.rsi/off.png
Normal file
BIN
Resources/Textures/Objects/lighting.rsi/off.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 576 B |
BIN
Resources/Textures/Objects/lighting.rsi/on.png
Normal file
BIN
Resources/Textures/Objects/lighting.rsi/on.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 842 B |
Reference in New Issue
Block a user