Recreation building doesn't get used? (solved)

Started by AileTheAlien, October 21, 2018, 07:35:37 AM

Previous topic - Next topic

AileTheAlien

I made some new recreation buildings, by copying off of the chess table, poker table, and tube-television. Despite showing the percent-effectiveness for recreation, my pawns won't interact with these in the game. Is there something else I'm missing, that makes the game recognize these as places for pawns to recreate?

AileTheAlien

In case anyone else has a similar issue, what you want to do is add the building(s) to the JoyGiverDefs in the base-game, for the appropriate activities. For example, to add a different type of chess table, you'd want a patch like this:

<Patch>
    <Operation Class="PatchOperationAdd">
        <xpath>/Defs/JoyGiverDef[defName="Play_Chess"]/thingDefs</xpath>
        <value>
            <li>SandChessTable</li>
        </value>
    </Operation>
</Patch>