Make ExplosionHelper methods extensions (#2373)

This commit is contained in:
DrSmugleaf
2020-10-25 12:11:23 +01:00
committed by GitHub
parent ab537a0f56
commit 4c46c7afce
5 changed files with 13 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ namespace Content.Server.GameObjects.Components.Explosion
if (_beingExploded) return true;
_beingExploded = true;
ExplosionHelper.SpawnExplosion(Owner.Transform.Coordinates, DevastationRange, HeavyImpactRange, LightImpactRange, FlashRange);
Owner.SpawnExplosion(DevastationRange, HeavyImpactRange, LightImpactRange, FlashRange);
Owner.Delete();
return true;

View File

@@ -143,9 +143,7 @@ namespace Content.Server.GameObjects.Components.NodeContainer.NodeGroups
intensity = Math.Min(intensity, 8);
ExplosionHelper.SpawnExplosion(epicenter.Owner.Transform.Coordinates, intensity / 2, intensity, intensity * 2, intensity * 3);
epicenter.Owner.SpawnExplosion(intensity / 2, intensity, intensity * 2, intensity * 3);
}
}
}

View File

@@ -127,7 +127,7 @@ namespace Content.Server.GameObjects.Components.Pointing
return;
}
ExplosionHelper.SpawnExplosion(Owner.Transform.Coordinates, 0, 2, 1, 1);
Owner.SpawnExplosion(0, 2, 1, 1);
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/Effects/explosion.ogg", Owner);
Owner.Delete();