Skip to content

Add Lua helper functions for moving InternalCrew#2724

Merged
daid merged 3 commits intodaid:masterfrom
oznogon:internal-crew-sugar
Mar 27, 2026
Merged

Add Lua helper functions for moving InternalCrew#2724
daid merged 3 commits intodaid:masterfrom
oznogon:internal-crew-sugar

Conversation

@oznogon
Copy link
Copy Markdown
Contributor

@oznogon oznogon commented Feb 18, 2026

  • Entity:getRepairCrew(): Returns a 1-indexed table of internal_crew entities assigned to this entity.
  • Entity:isValidCrewPosition(pos): Returns true if {x,y} falls within any internal room.
  • Entity:getInternalRoomForSystem(system): Returns the room containing a given ship system, if any.
  • Entity:getCoordinatesForInternalRoom(room): Returns a table of all {x,y} coordinates within a room.
  • Entity:moveRepairCrewToPosition(crew_index, pos): Moves a crew to a specific {x,y} position, if it's valid. Returns false if not
  • Entity:moveRepairCrewToRoom(crew_index, room): Moves a repair crew to a random position within a room.
Screen.Recording.2026-02-17.174443.mp4

oznogon and others added 3 commits February 17, 2026 17:55
- Entity:getRepairCrew(): Returns a 1-indexed table of
  internal_crew entities assigned to this entity.
- Entity:isValidCrewPosition(pos): Returns true if {x,y} falls
  within any internal room.
- Entity:getInternalRoomForSystem(system): Returns the room
  containing a given ship system, if any.
- Entity:getCoordinatesForInternalRoom(room): Returns a table of
  all {x,y} coordinates within a room.
- Entity:moveRepairCrewToPosition(crew_index, pos): Moves a crew to
  a specific {x,y} position, if it's valid. Returns false if not
- Entity:moveRepairCrewToRoom(crew_index, room): Moves a repair
  crew to a random position within a room.
@daid daid merged commit 2d08a9e into daid:master Mar 27, 2026
5 checks passed
@oznogon oznogon deleted the internal-crew-sugar branch March 27, 2026 20:56
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.

2 participants