Wall lights now require light bulbs. (#151)

* Adds light_tube.rsi

Sprites taken from CEV Eris!

* Adds LightBulbComponent

* Wall lights now use light bulbs!

* Light bulb now updates its sprite when it changes.

* Comments the code.

* Adds license and copyright to new sprites
This commit is contained in:
Víctor Aguilera Puerto
2019-03-22 23:59:13 +01:00
committed by Pieter-Jan Briers
parent 58e8aef5d8
commit b3aa1f6dcd
9 changed files with 299 additions and 23 deletions

View File

@@ -3,7 +3,6 @@
name: "Unpowered Light"
components:
- type: Clickable
# So we can click on it for deletion.
- type: BoundingBox
- type: Sprite
sprite: Buildings/light_tube.rsi
@@ -28,6 +27,8 @@
id: poweredlight
parent: wall_light
components:
- type: Clickable
- type: BoundingBox
- type: Sprite
sprite: Buildings/light_tube.rsi
state: off
@@ -40,7 +41,31 @@
state: Off
- type: PowerDevice
load: 50
priority: Low
- type: PoweredLight
load: 40
bulb: Tube
- type: entity
parent: BaseItem
name: BaseLightbulb
id: BaseLightbulb
components:
- type: LightBulb
- type: entity
parent: BaseLightbulb
name: Light Tube
id: LightTube
components:
- type: LightBulb
bulb: Tube
- type: Sprite
sprite: Objects/light_tube.rsi
state: normal
- type: Icon
sprite: Objects/light_tube.rsi
state: normal