Skip to content

Commit

Permalink
minor AI cleanup (space-wizards#33555)
Browse files Browse the repository at this point in the history
* minor cleanup

* to
  • Loading branch information
slarticodefast authored Nov 25, 2024
1 parent b8c8f7d commit e9eca82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void OnAirlockBolt(EntityUid ent, DoorBoltComponent component, StationAi
}

/// <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)
{
Expand All @@ -48,7 +48,7 @@ private void OnAirlockEmergencyAccess(EntityUid ent, AirlockComponent component,
}

/// <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)
{
Expand Down
3 changes: 3 additions & 0 deletions Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ private void AttachEye(Entity<StationAiCoreComponent> ent)

private void OnAiInsert(Entity<StationAiCoreComponent> ent, ref EntInsertedIntoContainerMessage args)
{
if (args.Container.ID != StationAiCoreComponent.Container)
return;

if (_timing.ApplyingState)
return;

Expand Down

0 comments on commit e9eca82

Please sign in to comment.