{
     "Changes": [
          //Stardew Aquarium compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Railroad",
               "FromFile": "Assets/Maps/MapPatches/Railroad_Aquarium.tbin",
               "When": {
                    "HasMod": "Cherry.StardewAquarium"
               },
               "ToArea": {
                    "X": 29,
                    "Y": 41,
                    "Width": 4,
                    "Height": 2
               }
          },
          //Immersive Farm 2 secret woods entrance compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Woods",
               "FromFile": "Assets/Maps/MapPatches/RemoveWoodsPillar.tmx",
               "When": {
                    "HasMod": "zander.immersivefarm2"
               },
               "ToArea": {
                    "X": 28,
                    "Y": 4,
                    "Width": 2,
                    "Height": 1
               }
          },
          //Penny's home compatibility patch
          {
               "Action": "EditData",
               "Target": "characters/schedules/Penny",
               "When": {
                    "HasMod": "Fellowclown.PennyUpgrade",
                    "HasDialogueAnswer": "77710"
               },
               "Entries": {
                    "9": "NOT friendship Sam 6/900 PennysHouse 7 5 0 \"Strings\\schedules\\Penny:Upgrade.000\"/1100 Town 78 93 2 penny_sit_down \"Strings\\schedules\\Penny:Upgrade.001\"/1600 PennysHouse 3 5 0 penny_dishes \"Strings\\schedules\\Penny:Upgrade.002\"/1840 PennysHouse 10 5 1 penny_sleep",
                    "23": "NOT friendship Sam 6/GOTO 9",
                    "rain": "900 PennysHouse 2 5 0/1100 PennysHouse 4 5 0 \"Strings\\schedules\\Penny:Upgrade.003\"/1300 PennysHouse 3 5 0 penny_dishes \"Strings\\schedules\\Penny:Upgrade.004\"/1500 PennysHouse 9 7 2 penny_sit_down \"Strings\\schedules\\Penny:Upgrade.005\"1800 PennysHouse 6 6 2 penny_read \"Strings\\schedules\\Penny:Upgrade.006\"/2100 PennysHouse 10 5 1 penny_sleep",
                    "rain2": "810 Town 104 89 2 \"Strings\\schedules\\Penny:rain2.000\"/1200 ArchaeologyHouse 20 5 0/1600 PennysHouse 9 7 2 penny_sit_down \"Strings\\schedules\\Penny:Upgrade.007\"/1900 PennysHouse 3 5 0 penny_dishes \"Strings\\schedules\\Penny:Upgrade.008\"/2100 PennysHouse 10 5 1 penny_sleep",
                    "summer": "810 Town 96 18 3/1300 Town 63 15 2 penny_sit_down/1800 PennysHouse 3 5 0 penny_dishes/2100 PennysHouse 10 5 1 penny_sleep",
                    "winter_15": "900 PennysHouse 2 5 0 \"Strings\\schedules\\Penny:Upgrade.009\"/1100 PennysHouse 4 5 0 \"Strings\\schedules\\Penny:Upgrade.0010\"/1300 PennysHouse 3 5 0 penny_dishes \"Strings\\schedules\\Penny:Upgrade.0011\"/1500 PennysHouse 9 7 2 penny_sit_down \"Strings\\schedules\\Penny:Upgrade.0012\"/1600 Beach 35 36 2 \"Strings\\schedules\\Penny:winter_15.000\"/2350 PennysHouse 10 5 1 penny_sleep",
                    "winter": "900 PennysHouse 7 5 0/1030 CommunityCenter 23 17 2 penny_read/1500 CommunityCenter 46 13 0/1800 PennysHouse 3 5 0 penny_dishes/2100 PennysHouse 10 5 1 penny_sleep",
                    "CommunityCenter_Replacement": "ArchaeologyHouse 16 10 2",
                    "winter_4": "900 PennysHouse 7 5 0 \"Strings\\schedules\\Penny:winter_4.000\"/1130 Hospital 4 17 2 penny_sit_down/1330 Hospital 4 6 1 \"Strings\\schedules\\Penny:winter_4.001\"/1600 Town 75 52 2 penny_sit_down/1900 PennysHouse 3 5 0 penny_dishes \"Strings\\schedules\\Penny:Upgrade.0013\"/2100 PennysHouse 10 5 1 penny_sleep",
                    "9_6": "GOTO spring",
                    "23_6": "GOTO spring",
                    "summer_Sun": "800 Town 96 18 3/1200 ScienceHouse 8 5 2 penny_sit_down/1800 PennysHouse 3 5 0 penny_dishes/2100 PennysHouse 10 5 1 penny_sleep",
                    "marriageJob": "830 ArchaeologyHouse 17 9 2 penny_read \"Strings\\schedules\\Penny:marriageJob.000\"/1400 Town 86 99 2/1620 Town 17 90 3 penny_wave_left/1750 Forest 92 20 3 penny_wave_left/1830 bed",
                    "Tue": "830 PennysHouse 9 7 0 penny_sit \"Strings\\schedules\\Penny:Upgrade.0014\"/900 ArchaeologyHouse 17 9 2 penny_read/1400 Town 87 100 2/1620 Town 17 90 3 penny_wave_left/1750 Forest 92 20 3 penny_wave_left/1830 PennysHouse 10 5 1 penny_sleep",
                    "Wed": "GOTO Tue",
                    "Fri": "GOTO Tue",
                    "Sat": "1000 Town 32 89 2/1200 Town 12 13 1/1700 Town 29 91 3/2000 PennysHouse 10 5 1 penny_sleep",
                    "marriage_Mon": "830 SeedShop 2 26 2 \"Strings\\schedules\\Penny:marriage_Mon.000\"/1100 SeedShop 5 19 0 \"Strings\\schedules\\Penny:marriage_Mon.001\"/1130 Town 35 89 2 penny_read/1600 Town 44 77 2 penny_sit_down \"Strings\\schedules\\Penny:marriage_Mon.002\"/1810 bed",
                    "spring": "800 Town 35 89 2 penny_read/1230 PennysHouse 3 5 0 penny_dishes \"Strings\\schedules\\Penny:Upgrade.0015\"/1600 Town 44 77 2 penny_sit_down/1840 PennysHouse 10 5 1 penny_sleep",
               }
          },
          //Way Back Pelican Town compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Town",
               "FromFile": "Assets/Maps/MapPatches/WayBackPelicanTownComaptibilityPatch.tbin",
               "When": {
                    "HasMod |contains=Gweniaczek.WayBackPT": true,
                    "HasSeenEvent |contains=502261": false
               },
               "PatchMode": "Replace",
               "ToArea": {
                    "X": 96,
                    "Y": 78,
                    "Width": 4,
                    "Height": 3
               }
          },
          //Joja Shop compatibility patch for Joja Seeds mod
          {
               "Action": "EditMap",
               "Target": "Maps/JojaMart",
               "FromFile": "Assets/Maps/MapPatches/VanillaJojaShopPatch.tbin",
               "ToArea": {
                    "X": 10,
                    "Y": 24,
                    "Width": 1,
                    "Height": 3
               },
               "When": {
                    "DisableSVEJojaMartShop": "true"
               }
          },
          //Kadija compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Desert",
               "FromFile": "Assets/Maps/MapPatches/Desert_Kadija.tbin",
               "When": {
                    "HasMod |contains=ppja.KRSCP": true
               },
               "ToArea": {
                    "X": 4,
                    "Y": 16,
                    "Width": 7,
                    "Height": 8
               }
          },
          //Juliet Joja Day compatibility patch
          {
               "Action": "EditData",
               "Target": "Characters/schedules/Juliet",
               "Entries": {
                    "22": "620 LodgingHouse 21 16 3/700 Town 95 51 0/850 JojaMart 12 28 1/1700 Town 25 22 2 Juliet_yoyo/2400 LodgingHouse 27 6 2 Juliet_sleep"
               },
               "When": {
                    "HasMod": "LemurKat.JulietHouse.NPC",
                    "HasSeenEvent |contains=502261": true,
                    "Day |contains=22": true
               }
          },
          {
               "Action": "EditData",
               "Target": "characters/dialogue/Juliet",
               "When": {
                    "HasMod": "LemurKat.JulietHouse.NPC",
                    "HasSeenEvent |contains=502261": true,
                    "Day |contains=22": true
               },
               "Entries": {
                    "JojaMart_12_28": "{{i18n:JojaDay.Juliet.1}}",
               },
          },
          //Extended Minecart compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Desert",
               "FromFile": "Assets/Maps/MapPatches/Desert_ExtendedMinecart.tbin",
               "When": {
                    "HasMod |contains=Entoarox.ExtendedMinecart": true
               },
               "ToArea": {
                    "X": 26,
                    "Y": 0,
                    "Width": 11,
                    "Height": 10
               }
          },
          //Walk to Desert compatibility patch
          { //New warps
               "Action": "EditMap",
               "Target": "Maps/Desert",
               "When": {
                    "HasMod |contains=Tarniyar.CP.WalkToDesert": true
               },
               "TextOperations": [
                    {
                         "Operation": "Append",
                         "Target": [
                              "MapProperties",
                              "Warp"
                         ],
                         "Value": "60 23 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35 60 24 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35 60 25 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35 60 26 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35 60 27 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35 60 28 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35 60 29 Tarniyar.CP.WalkToDesert_Ghost_Town 1 35",
                         "Delimiter": " "
                    }
               ]
          },
          { //patches out building tiles
               "Action": "EditMap",
               "Target": "Maps/Desert",
               "FromFile": "Assets/Maps/MapPatches/Desert_WalkToDesert.tbin",
               "When": {
                    "HasMod |contains=Tarniyar.CP.WalkToDesert": true
               },
               "ToArea": {
                    "X": 59,
                    "Y": 23,
                    "Width": 1,
                    "Height": 8
               }
          },
		  //Sterling mine event compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Mountain",
               "FromFile": "Assets/Maps/MapPatches/SterlingCompat.tmx",
               "When": {
                    "HasMod": "Himetarts.ARV.CP"
               },
               "ToArea": {
                    "X": 50,
                    "Y": 0,
                    "Width": 8,
                    "Height": 7
               }
          },
		  //Ridgeside Mountain compatibility patch
          {
               "Action": "EditMap",
               "Target": "Maps/Mountain",
               "FromFile": "Assets/Maps/MapPatches/Mountain_RidgesidePatch.tmx",
               "When": {
                    "HasMod": "Rafseazz.RSVCP"
               },
               "ToArea": {
                    "X": 67,
                    "Y": 14,
                    "Width": 4,
                    "Height": 3
               }
          },
		  //Forager's Nooks and Crannies Secret Woods Compatibility Patch
           {
            "Action": "EditMap",
            "Target": "Maps/Woods",
            "FromFile": "Assets/Maps/MapPatches/WoodsFaerieForageSVEPatch.tmx",
            "ToArea": {
                "X": 0,
                "Y": 0,
                "Width": 13,
                "Height": 10
            },
            "PatchMode": "Replace",
            "When": 
            {
                "HasMod: |contains=Wildflour.AtelierGoods": true,
            },
            "Priority": "Early",
          },
          { //Patches purple star icon to down arrow for sign usage
               "Action": "EditImage",
               "Target": "LooseSprites/font_bold",
               "FromFile": "assets/Tilesheets/DownArrow.png",
               "ToArea": {
                    "X": 104,
                    "Y": 19,
                    "Width": 8,
                    "Height": 10
               },
               "When": {
                    "LocationName": "Farm, Custom_BlueMoonVineyard, Backwoods, Forest, BusStop, Custom_GrampletonSuburbsTrainStation, Custom_GrampletonSuburbs"
               },
               "Update": "OnLocationChange"
          },
		{
            //Add events to the blocklist so they won't show up
            //in the "Available Events" menu
            //left-hand side is the event id, right side doesnt matter
            "Action": "EditData",
            "Target": "Mods/shekurika.EventLookup/blocklist",
            "Entries": {
                "100000000000": "T",
            }
          },
		  
		//Adds 2 extra museum spaces if Walk To Desert is installed
		{
               "Action": "EditMap",
               "Target": "Maps/ArchaeologyHouse",
               "FromFile": "Assets/Maps/MapPatches/ArchaeologyHouse_MoreSpace.tbin",
               "When": {
                    "HasMod |contains=Tarniyar.CP.WalkToDesert": true,
					"HasMod |contains=RaffieJohn.ExtraSpace": false,
               },
               "ToArea": {
                    "X": 43,
                    "Y": 13,
                    "Width": 4,
                    "Height": 3
               }
          },
     ]
}