Make fuel tanks explodey again (#4670)

* make fuel tanks explodey again

* tanks now take damage from lit welders,
This commit is contained in:
Leon Friedrich
2021-10-02 19:42:46 +10:00
committed by GitHub
parent 2992bd74cd
commit f80f252ff2
7 changed files with 64 additions and 28 deletions

View File

@@ -301,13 +301,6 @@ namespace Content.Server.Tools.Components
.TryGetDrainableSolution(eventArgs.Target.Uid, out var targetSolution)
&& WelderSolution != null)
{
if (WelderLit && targetSolution.DrainAvailable > 0)
{
// Oh no no
eventArgs.Target.SpawnExplosion();
return true;
}
var trans = ReagentUnit.Min(WelderSolution.AvailableVolume, targetSolution.DrainAvailable);
if (trans > 0)
{