Add atmos ignition logs (#14216)
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.Reactions;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Audio;
|
||||
using Content.Shared.Database;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Player;
|
||||
@@ -94,7 +95,8 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
// TODO ATMOS Maybe destroy location here?
|
||||
}
|
||||
|
||||
private void HotspotExpose(GridAtmosphereComponent gridAtmosphere, TileAtmosphere tile, float exposedTemperature, float exposedVolume, bool soh = false)
|
||||
private void HotspotExpose(GridAtmosphereComponent gridAtmosphere, TileAtmosphere tile,
|
||||
float exposedTemperature, float exposedVolume, bool soh = false, EntityUid? sparkSourceUid = null)
|
||||
{
|
||||
if (tile.Air == null)
|
||||
return;
|
||||
@@ -125,6 +127,9 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
if ((exposedTemperature > Atmospherics.PlasmaMinimumBurnTemperature) && (plasma > 0.5f || tritium > 0.5f))
|
||||
{
|
||||
if (sparkSourceUid.HasValue)
|
||||
_adminLog.Add(LogType.Flammable, LogImpact.High, $"Heat/spark of {ToPrettyString(sparkSourceUid.Value)} caused atmos ignition of gas: {tile.Air.Temperature.ToString():temperature}K - {oxygen}mol Oxygen, {plasma}mol Plasma, {tritium}mol Tritium");
|
||||
|
||||
tile.Hotspot = new Hotspot
|
||||
{
|
||||
Volume = exposedVolume * 25f,
|
||||
@@ -134,7 +139,6 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
State = 1
|
||||
};
|
||||
|
||||
|
||||
AddActiveTile(gridAtmosphere, tile);
|
||||
gridAtmosphere.HotspotTiles.Add(tile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user