Stashes

Stashes
Stashes are containers of items - chests, lockers, boxes, crates, lootable corpses - anything which exists as an actor and contains an inventory.

The stash is a static two-dimensional InventoryDef array which is populated via PopulateChest and DepopulateChest. Items are either randomly generated or defined in the map actors arguments (arg0-arg4). These are initialized as ItemList indexes when the stash is opened.

Stash actors have several unique decorate inventory actors associated with them:

Code located at Inventory/pk3/Actors/Inventory/Inventory.dec The latter four inventory actors are not required to be set within the stash directly, but can be if desired. Most stashes are randomly seeded.
 * ChestSizeX
 * ChestSizeY - Both are given during the actors spawn, and define the integer size of the container.
 * ChestIndex0-99 - These denote 'slots' and the amount of each inventory actor is the ItemList index.
 * ChestAmount0-99 - For stackable items, denotes the amount in this 'slot'
 * ChestDurability0-99 - The durability for this 'slot'
 * ChestModifier0-99 - The modifier index of this 'slot'