Remove most IEntity usages from explosions (#5240)
* Remove most IEntity usages from Destructible and Explosions * Perform a minute amount of cleanup * Fix build
This commit is contained in:
committed by
GitHub
parent
3a4186f6f6
commit
42aaba9a5d
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using Content.Server.Chemistry.Components;
|
||||
using Content.Server.Explosion;
|
||||
using Content.Server.Explosion.EntitySystems;
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.PowerCell;
|
||||
using Content.Shared.Rounding;
|
||||
@@ -75,7 +73,7 @@ namespace Content.Server.PowerCell.Components
|
||||
var light = (int) Math.Ceiling(Math.Sqrt(CurrentCharge) / 30);
|
||||
|
||||
CurrentCharge = 0;
|
||||
Owner.SpawnExplosion(0, heavy, light, light*2);
|
||||
EntitySystem.Get<ExplosionSystem>().SpawnExplosion(OwnerUid, 0, heavy, light, light*2);
|
||||
Owner.Delete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user