ECS Atmos Part 2: Moves a lot of Gas Mixture methods to AtmosphereSystem. (#4218)
This commit is contained in:
committed by
GitHub
parent
e16c23a747
commit
263c9ef974
@@ -1,11 +1,13 @@
|
||||
using System;
|
||||
using Content.Server.Atmos;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.Chemistry.Reaction;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.Maps;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
@@ -26,7 +28,7 @@ namespace Content.Server.Chemistry.TileReactions
|
||||
MathF.Max(MathF.Min(tileAtmos.Air.Temperature - (_coolingTemperature * 1000f),
|
||||
tileAtmos.Air.Temperature / _coolingTemperature),
|
||||
Atmospherics.TCMB);
|
||||
tileAtmos.Air.React(tileAtmos);
|
||||
EntitySystem.Get<AtmosphereSystem>().React(tileAtmos.Air, tileAtmos);
|
||||
tileAtmos.Hotspot = new Hotspot();
|
||||
tileAtmos.UpdateVisuals();
|
||||
return ReagentUnit.Zero;
|
||||
|
||||
Reference in New Issue
Block a user