Even more resolve removals.
This commit is contained in:
@@ -51,11 +51,13 @@ namespace Content.Server.StationEvents.Events
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
var entMan = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
foreach (var entity in _powered)
|
||||
{
|
||||
if ((!IoCManager.Resolve<IEntityManager>().EntityExists(entity) ? EntityLifeStage.Deleted : IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(entity).EntityLifeStage) >= EntityLifeStage.Deleted) continue;
|
||||
if (entMan.Deleted(entity)) continue;
|
||||
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(entity, out ApcPowerReceiverComponent? powerReceiverComponent))
|
||||
if (entMan.TryGetComponent(entity, out ApcPowerReceiverComponent? powerReceiverComponent))
|
||||
{
|
||||
powerReceiverComponent.PowerDisabled = false;
|
||||
}
|
||||
|
||||
@@ -89,15 +89,15 @@ namespace Content.Server.StationEvents.Events
|
||||
return;
|
||||
|
||||
var pulse = _entityManager.SpawnEntity("RadiationPulse", coordinates);
|
||||
IoCManager.Resolve<IEntityManager>().GetComponent<RadiationPulseComponent>(pulse).DoPulse();
|
||||
_entityManager.GetComponent<RadiationPulseComponent>(pulse).DoPulse();
|
||||
ResetTimeUntilPulse();
|
||||
}
|
||||
|
||||
public static void SpawnPulseAt(EntityCoordinates at)
|
||||
public void SpawnPulseAt(EntityCoordinates at)
|
||||
{
|
||||
var pulse = IoCManager.Resolve<IEntityManager>()
|
||||
.SpawnEntity("RadiationPulse", at);
|
||||
IoCManager.Resolve<IEntityManager>().GetComponent<RadiationPulseComponent>(pulse).DoPulse();
|
||||
_entityManager.GetComponent<RadiationPulseComponent>(pulse).DoPulse();
|
||||
}
|
||||
|
||||
private bool TryFindRandomGrid(IMapGrid mapGrid, out EntityCoordinates coordinates)
|
||||
|
||||
Reference in New Issue
Block a user