minor AI cleanup (#33555)

* minor cleanup

* to
This commit is contained in:
slarticodefast
2024-11-25 23:39:04 +01:00
committed by GitHub
parent b8c8f7d0f8
commit e9eca826d8
2 changed files with 5 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ public abstract partial class SharedStationAiSystem
}
/// <summary>
/// Attempts to bolt door. If wire was cut (AI) or its not powered - notifies AI and does nothing.
/// Attempts to toggle the door's emergency access. If wire was cut (AI) or its not powered - notifies AI and does nothing.
/// </summary>
private void OnAirlockEmergencyAccess(EntityUid ent, AirlockComponent component, StationAiEmergencyAccessEvent args)
{
@@ -48,7 +48,7 @@ public abstract partial class SharedStationAiSystem
}
/// <summary>
/// Attempts to bolt door. If wire was cut (AI or for one of power-wires) or its not powered - notifies AI and does nothing.
/// Attempts to electrify the door. If wire was cut (AI or for one of power-wires) or its not powered - notifies AI and does nothing.
/// </summary>
private void OnElectrified(EntityUid ent, ElectrifiedComponent component, StationAiElectrifiedEvent args)
{

View File

@@ -394,6 +394,9 @@ public abstract partial class SharedStationAiSystem : EntitySystem
private void OnAiInsert(Entity<StationAiCoreComponent> ent, ref EntInsertedIntoContainerMessage args)
{
if (args.Container.ID != StationAiCoreComponent.Container)
return;
if (_timing.ApplyingState)
return;