Contraband - originalfoo/Prison-Architect-API GitHub Wiki

##Overview

Rooms

The Contraband setting indicates which types of contraband (luxuries, weapons, etc) prisoners might find in the room.

##Syntax

This optional setting is used in materials.txt and must be within a BEGIN Room ... definition block. It can be used only once per definition block.

    BEGIN Contraband Id <equipmentId> END

Where <equipmentId> is defines the Equipment that may appear in the room.

##Example

    BEGIN Contraband Id Knife END
    BEGIN Contraband Id Fork  END
    BEGIN Contraband Id Spoon END

##Scripting

data/scripts/:

##Notes

For this setting to work, the referenced <contrabandId> must be defined prior to the BEGIN Room ... definition block; otherwise, when the room definition is parsed, the game won't recognise the <equipmentId> and will ignore it.

##See Also

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