Crates

Started by generalcrusher, March 10, 2014, 12:59:00 PM

Previous topic - Next topic

generalcrusher

Is it possible to make crates which contain more than two items? (equipment rack default) Is there any line in the xml which defines how many items fit in there?

Kilroy232

#1
The number of items that can be stacked is actually defined within the item itself and not the furniture it is being stacked in.

If you looking in core/Defs/ThingDefs/Meals.xml you will see a tag <stackLimit>1</stackLimit> this is the number if meals that can be stacked in one square on the map. This number can be changed to what ever you want and it is possible to make a mod that changes this number without changing the core code.

attached a screen shot of the line of code for ya

[attachment deleted by admin: too old]

generalcrusher

If I understand you right, I would have to make weapons stackable to fit more than two into one equipment rack?

Kilroy232

correct, that is the only way I have found to do what you have described so far. Its not ideal but it works

generalcrusher