Content Patcher

Content Patcher

378k Downloads

[Content Patcher] support multiple target values

Pathoschild opened this issue ยท 1 comments

commented

The game duplicates map tilesheets into both Content and Content/Maps, so content packs often need to duplicate patches too. This can be onerous in more complex packs:

{
    "LogName": "Town Edits - Maps",
    "Action": "EditImage",
    "Target": "Maps/{{season}}_town",
    "FromFile": "mapassets/{{season}}_town.png",
    "ToArea": { "X": 0, "Y": 0, "Width": 512, "Height": 992 },
    "PatchMode": "Overlay",
    "When": {
        "Season": "spring, summer, winter"
    }
},
{
    "LogName": "Town Edits - Content",
    "Action": "EditImage",
    "Target": "{{season}}_town",
    "FromFile": "mapassets/{{season}}_town.png",
    "ToArea": { "X": 0, "Y": 0, "Width": 512, "Height": 992 },
    "PatchMode": "Overlay",
    "When": {
        "Season": "spring, summer, winter"
    }
},

Add support for specifying multiple files in Target to simplify that:

{
    "LogName": "Town Edits",
    "Action": "EditImage",
    "Target": "{{season}}_town, Maps/{{season}}_town",
    "FromFile": "mapassets/{{season}}_town.png",
    "ToArea": { "X": 0, "Y": 0, "Width": 512, "Height": 992 },
    "PatchMode": "Overlay",
    "When": {
        "Season": "spring, summer, winter"
    }
}
commented

Done in develop for the upcoming Content Patcher 1.5.