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:  
This commit is contained in:
committed by
Pieter-Jan Briers
parent
03856b79b4
commit
d9ff72c907
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user