Rooms - originalfoo/Prison-Architect-API GitHub Wiki

Overview

Rooms

Rooms are used to designate areas of your prison for a specific purpose.

A list of all rooms in the base game can be found in the sidebar.

[Intake](Intake (Room)) HoldingCell

[Shower](Shower (Room)) [Cell](Cell (Room)) [SuperiorCell](SuperiorCell (Room)) [Solitary](Solitary (Room)) [ParoleRoom](ParoleRoom (Room)) [Execution](Execution (Room)) [Morgue](Morgue (Room)) [Chapel](Chapel (Room)) [Classroom](Classroom (Room)) [CommonRoom](CommonRoom (Room)) [Library](Library (Room)) [MailRoom](MailRoom (Room)) [Shop](Shop (Room)) [Visitation](Visitation (Room)) [Yard](Yard (Room)) [Canteen](Canteen (Room)) [Kitchen](Kitchen (Room)) [MedicalWard](MedicalWard (Room)) [Morgue](Morgue (Room)) [CleaningCupboard](CleaningCupboard (Room)) [Laundry](Laundry (Room)) [Storage](Storage (Room)) [Deliveries](Deliveries (Room)) [Exports](Exports (Room)) [Garbage](Garbage (Room)) [Forestry](Forestry (Room)) [Workshop](Workshop (Room)) [Office](Office (Room)) [Staffroom](Staffroom (Room)) [Security](Security (Room)) [Armoury](Armoury (Room)) [Kennel](Kennel (Room))

Modding

The following modding options are available...

Menus

All rooms defined in materials.txt are automatically added to the "Rooms" menu.

If a room requires Research to unlock, it will be disabled (not usable) until that research is completed (Execution room is completely hidden until "Death Row" is completed).

Stuff on other menus is defined elsewhere, see Menus for details.

Menu Icons

To add or update room icons, use data/ui.png

If adding icons:

  1. Put Sprite Room<roomId> in the room definition (see next section)
  • <roomId> is the Name of your room specified in its definition
  1. Define a sprite called Room<roomId> in data/interface.spritebank

It is currently not possible to use sprites.png for room menu icons.

Sprites

Rooms don't have sprites.

Their area is automatically filled with a checkerboard pattern, and the room name is then overlaid on top. Both these things are hard-coded in the base game.

Room Definitions

Add or replace rooms using BEGIN Room... definition blocks within data/materials.txt

A list of known settings is shown below (bullet points are just for aesthetics don't include them in your definition). Bold settings are mandatory

BEGIN Room

END

Scripting

It's not currently possible to script the actual rooms themselves.

data/scripts/

Objects, regardless of category, sometimes provide information about rooms they are associated with. Room-specific information can be found via the links in the sidebar.

todo: grants.lua

todo: campaign script

See Also

todo

⚠️ **GitHub.com Fallback** ⚠️