Content Patcher

Content Patcher

378k Downloads

[Content Patcher] add token support in dynamic token values

Pathoschild opened this issue ยท 1 comments

commented

Add support for using token placeholders in dynamic token values.

For example, this would let content packs have a default token value if the token isn't available yet (useful for making sure a new save spawns debris correctly):

{
    "Format": "1.7",
    "DynamicTokens": [
        {
            "Name": "UseSeason",
            "Value": "spring" // default if season token not ready yet
        },
        {
            "Name": "UseSeason",
            "Value": "{{season}}"
        }
    ],
    "Changes": [
        {
            "Target": "Maps/Town",
            "FromFile": "assets/{{useSeason}}_town.tbin"
        }
    ]
}
commented

Done in the upcoming Content Patcher 1.7.