Skip to content

Crew-only airlocks keep out NPC boarders - #533

Merged
Jackriip merged 1 commit into
masterfrom
fix/crew-lock-npcs
Nov 11, 2026
Merged

Jackriip merged 1 commit into
masterfrom
fix/crew-lock-npcs

Conversation

@Jackriip

Copy link
Copy Markdown
Member

About The Pull Request

A captain's crew-only airlock lock now keeps out NPCs as well as players.

  • While the lock is on, the ship's airlocks and windoors refuse any NPC that isn't crew. Before this, only players were refused, so pirate boarders rushing a docked ship walked straight through every airlock without mapped access, the exterior ones included.
  • Pirate boarders and patrol NPCs treat a crew-locked door like an access-locked one and break it down instead of walking through or stalling. They still never smash a door that would vent to space.
  • NPCs that count as crew:
    • a crewmember's own body with nobody in it
    • deckhands and recruits following the crew aboard, so recruiting still works with the lock on
    • pets tamed by a crewmember
  • Unchanged: players (same refusal and message), bots and silicons (their own IDs), bolts, crowbarring unpowered doors, emags, firedoors, and ships with the lock off.
  • All NPC door planning now goes through one helper, door_refuses_npc(), which replaces door_requires_access().

Why It's Good For The Game

Crews turn the lock on to keep people out. It should keep out the pirates who board them too, or at least make them work for it.

Changelog

🆑
fix: Crew-only airlocks now keep out NPC boarders. Pirates have to break the doors down instead of walking in.
/:cl:

@Jackriip
Jackriip merged commit e24e718 into master Nov 11, 2026
5 checks passed
@Jackriip
Jackriip deleted the fix/crew-lock-npcs branch November 11, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant