Adds small lights and small light bulbs. (#156)

In the future, someone might want to edit the sprites so the bulb is white and not yellow.
Here's some screenshots:
![image](https://user-images.githubusercontent.com/6766154/54878560-d9242e80-4e2e-11e9-8fde-39ae082f34b0.png)
![image](https://user-images.githubusercontent.com/6766154/54878572-f3f6a300-4e2e-11e9-95a1-253a5504922f.png)
This commit is contained in:
Víctor Aguilera Puerto
2019-03-24 18:05:32 +01:00
committed by Pieter-Jan Briers
parent 03856b79b4
commit d9ff72c907
14 changed files with 101 additions and 5 deletions

View File

@@ -187,7 +187,15 @@ namespace Content.Server.GameObjects.Components.Power
if (!existed) // Insert a light tube if there wasn't any.
{
_lightBulbContainer.Insert(Owner.EntityManager.SpawnEntity("LightTube"));
switch (BulbType)
{
case LightBulbType.Tube:
_lightBulbContainer.Insert(Owner.EntityManager.SpawnEntity("LightTube"));
break;
case LightBulbType.Bulb:
_lightBulbContainer.Insert(Owner.EntityManager.SpawnEntity("LightBulb"));
break;
}
}
}
}