Adds FlammableComponent, humans can now catch on fire. (#2115)
This commit is contained in:
committed by
GitHub
parent
4c34a12c67
commit
31e0dfc10c
@@ -821,8 +821,14 @@ namespace Content.Server.Atmos
|
||||
|
||||
if (tileRef == null) return;
|
||||
|
||||
_gridAtmosphereComponent.Owner.EntityManager.
|
||||
EventBus.QueueEvent(EventSource.Local, new FireActEvent(Hotspot.Temperature, Hotspot.Volume));
|
||||
foreach (var entity in tileRef?.GetEntitiesInTileFast(_gridTileLookupSystem))
|
||||
{
|
||||
foreach (var fireAct in entity.GetAllComponents<IFireAct>())
|
||||
{
|
||||
|
||||
fireAct.FireAct(Hotspot.Temperature, Hotspot.Volume);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool ConsiderSuperconductivity()
|
||||
|
||||
Reference in New Issue
Block a user