{
  "Format": "1.10",

   "ConfigSchema": {
	
  "DirtCropField1": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "DirtCropField2": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "DirtCropField3": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "DirtCropField4": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "DirtCropField5": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "DirtCropField6": {
  "AllowValues": "true, false",
  "Default": "false"
   },

  "RemoveShed": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "RemoveFencesInFrontOfShed": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "RemoveFarmAnimalAreaFences": {
  "AllowValues": "true, false",
  "Default": "false"
   },

  "RemoveFencesLeftOfCropField1": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "RemoveFencesFromBackyard": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "RemoveTableFromBackyard": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "RemovePetHouseFromBackyard": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "RemoveFlowerbedFromBackyard": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
  "FarmSandboxLayout-AllOtherConfigurationsMustBeFalse": {
  "AllowValues": "true, false",
  "Default": "false"
   },
   
},

  "DynamicTokens": [
    {
      "Name": "recolor",
      "Value": "default",
    },
    {
      "Name": "recolor",
      "Value": "eemie",
      "When": {
      "HasMod:minervamaga.CP.eemieMapRecolour": "true",
      "HasFile:assets/eemie/eemie_{{season}}.png": "true"
      }
    },
    {
      "Name": "recolor",
      "Value": "sbv",
      "When": {
      "HasMod:Lita.StarblueValley": "true",
      "HasFile:assets/sbv/sbv_{{season}}.png": "true"
      }
    },
    {
      "Name": "recolor",
      "Value": "ace",
      "When": {
      "HasMod:Acerbicon.Recolor": "true",
      "HasFile:assets/ace/ace_{{season}}.png": "true"
      }
    },
    {
      "Name": "recolor",
      "Value": "alys",
      "When": {
      "HasMod:19062scott.CP.ALessYellowStardew": "true",
      "HasFile:assets/alys/alys_{{season}}.png": "true"
      }
    },
    {
      "Name": "GreenhouseMapOverride",
      "Value": "false",
    },
    {
      "Name": "GreenhouseMapOverride",
      "Value": "true",
      "When": {
        "HasFile:overrides/Greenhouse.tbin":"true"
      }
    },
    {
      "Name": "FarmCaveMapOverride",
      "Value": "false",
    },
    {
      "Name": "FarmCaveMapOverride",
      "Value": "true",
      "When": {
        "HasFile:overrides/FarmCave.tbin":"true"
      }
    },
    {
      "Name": "GreenhouseExteriorOverride",
      "Value": "false",
    },
    {
      "Name": "GreenhouseExteriorOverride",
      "Value": "true",
      "When": {
        "HasFile:overrides/{{season}}_houses.png":"true"
      }
    },
  ],

  "Changes": [ 
    {
      "LogName": "Default Tilesheet Load",
      "Action": "Load",
      "Target": "Maps/spring_extras, Maps/summer_extras, Maps/fall_extras, Maps/winter_extras",
      "FromFile": "assets/default/{{TargetWithoutPath}}.png"
    },
    {
      "LogName": "Recolored Tilesheets",
      "Action": "EditImage",
      "Target": "Maps/{{season}}_extras",
      "FromFile": "assets/{{recolor}}/{{season}}_extras.png",
      "When": {"recolor": "sbv,ace,alys,eemie"}
    },


     //Load the greenhouse exterior tilesheet from either default or override locations
    {
      "LogName": "Seasonal Default Greenhouse",
      "Action": "Load",
      "Target": "Maps/spring_houses, Maps/summer_houses, Maps/fall_houses, Maps/winter_houses",
      "FromFile": "assets/default/{{TargetWithoutPath}}.png",
      "When": {
        "HasFile:overrides/{{TargetWithoutPath}}.png":"false"
      }
    },
    {
      "LogName": "Seasonal Override Greenhouse",
      "Action": "Load",
      "Target": "Maps/spring_houses, Maps/summer_houses, Maps/fall_houses, Maps/winter_houses",
      "FromFile": "overrides/{{TargetWithoutPath}}.png",
      "When": {
        "HasFile:overrides/{{TargetWithoutPath}}.png":"true"
      }
    },



     //Void the dirt under the petbowl for IF2R
    {
      "LogName": "Fix Petbowl",
      "Action": "EditImage",
      "Target": "Maps/{{season}}_outdoorsTileSheet",
      "FromFile": "assets/petbowl.png",
      "ToArea": { "X": 208, "Y": 1232,"Width": 32, "Height": 16 },
      "When": {
      "FarmType": "Standard"
      }
    },
	
	//MAP LOADS AND CONFIGURATIONS
	{
      "Action": "Load",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/Farm.tbin",
	  "When": { "FarmSandboxLayout-AllOtherConfigurationsMustBeFalse": "false" }
    },
	
	{
      "Action": "Load",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/FarmSandboxLayout.tbin",
	  "When": { "FarmSandboxLayout-AllOtherConfigurationsMustBeFalse": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/DirtCropField1.tbin",
	  "ToArea": { "X": 43, "Y": 19, "Width": 21, "Height": 22 },
	  "When": { "DirtCropField1": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/DirtCropField2.tbin",
	  "ToArea": { "X": 65, "Y": 19, "Width": 21, "Height": 22 },
	  "When": { "DirtCropField2": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/DirtCropField3.tbin",
	  "ToArea": { "X": 51, "Y": 41, "Width": 13, "Height": 13 },
	  "When": { "DirtCropField3": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/DirtCropField4.tbin",
	  "ToArea": { "X": 65, "Y": 41, "Width": 22, "Height": 13 },
	  "When": { "DirtCropField4": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/DirtCropField5.tbin",
	  "ToArea": { "X": 104, "Y": 48, "Width": 22, "Height": 22 },
	  "When": { "DirtCropField5": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/DirtCropField6.tbin",
	  "ToArea": { "X": 127, "Y": 48, "Width": 33, "Height": 22 },
	  "When": { "DirtCropField6": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveShed.tbin",
	  "ToArea": { "X": 139, "Y": 26, "Width": 12, "Height": 10 },
	  "When": { "RemoveShed": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveShed.tbin",
	  "ToArea": { "X": 139, "Y": 26, "Width": 12, "Height": 10 },
	  "When": { "RemoveShed": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFencesInFrontOfShed.tbin",
	  "ToArea": { "X": 129, "Y": 36, "Width": 28, "Height": 9 },
	  "When": { "RemoveFencesInFrontOfShed": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFarmAnimalAreaFences.tbin",
	  "ToArea": { "X": 88, "Y": 20, "Width": 39, "Height": 25 },
	  "When": { "RemoveFarmAnimalAreaFences": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFencesLeftOfCropField1.tbin",
	  "ToArea": { "X": 34, "Y": 20, "Width": 9, "Height": 20 },
	  "When": { "RemoveFencesLeftOfCropField1": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFencesFromBackyard1.tbin",
	  "ToArea": { "X": 44, "Y": 5, "Width": 1, "Height": 10 },
	  "When": { "RemoveFencesFromBackyard": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFencesFromBackyard2.tbin",
	  "ToArea": { "X": 44, "Y": 15, "Width": 15, "Height": 2 },
	  "When": { "RemoveFencesFromBackyard": "true" }
    },

	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFencesFromBackyard3.tbin",
	  "ToArea": { "X": 72, "Y": 7, "Width": 2, "Height": 5 },
	  "When": { "RemoveFencesFromBackyard": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveTableFromBackyard.tbin",
	  "ToArea": { "X": 45, "Y": 6, "Width": 3, "Height": 4 },
	  "When": { "RemoveTableFromBackyard": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemovePetHouseFromBackyard.tbin",
	  "ToArea": { "X": 52, "Y": 4, "Width": 3, "Height": 3 },
	  "When": { "RemovePetHouseFromBackyard": "true" }
    },
	
	{
      "Action": "EditMap",
      "Target": "Maps/Farm,Maps",
      "FromFile": "assets/RemoveFlowerbedFromBackyard.tbin",
	  "ToArea": { "X": 57, "Y": 5, "Width": 4, "Height": 2 },
	  "When": { "RemoveFlowerbedFromBackyard": "true" }
    },
	
    //IF2R bus stop path
{
    "Action": "EditMap",
    "Target": "Maps/BusStop",
    "FromFile": "assets/busstoppath.tbin",
    "ToArea": { "X": 0, "Y": 24,"Width": 35, "Height": 6 },
    "When": {
      "FarmType":"Standard"
   }
},	

    //Load either default or override versions of Greenhouse and FarmCave, but only if not using a different farm
    {
    "Action": "Load",
    "Target": "Maps/Greenhouse",
    "FromFile": "assets/Greenhouse.tbin",
    "When": {
      "FarmType":"Standard",
      "HasFile:overrides/Greenhouse.tbin":"false"
      }
    },
    {
    "Action": "Load",
    "Target": "Maps/Greenhouse",
    "FromFile": "overrides/Greenhouse.tbin",
    "When": {
      "FarmType":"Standard",
      "HasFile:overrides/Greenhouse.tbin":"true"
      }
    },

    {
    "Action": "Load",
    "Target": "Maps/FarmCave",
    "FromFile": "assets/FarmCave.tbin",
    "When": {
      "FarmType":"Standard",
      "HasFile:overrides/FarmCave.tbin":"false"
      }
    },
    {
    "Action": "Load",
    "Target": "Maps/FarmCave",
    "FromFile": "overrides/FarmCave.tbin",
    "When": {
      "FarmType":"Standard",
      "HasFile:overrides/FarmCave.tbin":"true"
      }
    },

    {
    "Action": "EditImage",
    "Target": "LooseSprites/font_bold",
    "FromFile": "assets/font_bold.png",
    "ToArea": { "X": 88, "Y": 80,"Width": 8, "Height": 16 },
    "When": {"LocationName": "Farm"}
    },

    //Invisible Greenhouse
    {
    "Action": "EditImage",
    "Target": "Buildings/Houses",
    "FromFile": "assets/InvisibleGreenhouse.png",
    "ToArea": { "X": 160, "Y": 0,"Width": 112, "Height": 432 },
    "When": {
    "FarmType": "Standard"
      }
    },
	
    {       //NEW OPENING EVENT
    "Action": "EditData",
    "Target": "data/events/busstop",
	"When": { "FarmType":"Standard" },
    "Entries": {
    "60367/u 0": "none/-1000 -1000/farmer 12 10 2 Robin 13 16 0 Lewis -150 -150 2 Junimo -300 -300 2/pause 500/playSound busDoorOpen/pause 5000/skippable/viewport 15 14 clamp true/playMusic SettlingIn/move farmer 0 1 1/textAboveHead Robin \"You're finally here!\"/move farmer 1 0 2/move farmer 0 2 2/pause 600/speak Robin \"@! I'm happy to see you again! It's been a couple months.$4#$b#I can't believe it's move-in day for you! Everyone in town is excited you're officially a resident of Stardew Valley.$0\"/pause 200/jump farmer/pause 300/speak Robin \"I finished repairing the bridge, restoring electricity to the cottage, restored most of the fences, and the other various tasks you assigned me to do!$0#$b#Let's head over to %farm Farm so I can show you. I also have a surprise as well!$1\"/pause 400/emote farmer 20/pause 500/faceDirection Robin 1 true/pause 200/faceDirection Robin 2 true/pause 300/move Robin 0 7 3 true/pause 400/move farmer 0 6 3 true/globalFade/viewport -600 -600/changeLocation Farm/pause 600/halt/stopMusic/pause 700/playMusic spring_day_ambient/warp Robin 71 18/warp farmer 74 18/move Robin 0 0 3/faceDirection farmer 3/viewport 64 18 true/move Robin -10 0 3 true/move farmer -10 0 0 true/move Robin -6 0 1/pause 500/Speak Robin \"Come look at the backyard!$1\"/pause 350/faceDirection farmer 0 0 3/pause 400/viewport move -1 -1 8000 true/move farmer -8 0 3/pause 150/emote Robin 32/pause 100/move farmer 0 -6 0 true/pause 500/move Robin 0 0 0/pause 700/move Robin 0 -6 1 true/pause 200/emote farmer 16/pause 900/move farmer 0 0 3/pause 500/speak Robin \"Lewis and I cleaned up the backyard and I constructed a pet house for you!$0#$b#This is our way of welcoming you to the valley, @!$1\"/pause 400/emote Robin 40/pause 200/speak Robin \"Lewis is inside the cottage preparing some things for you still.$0#$b#Since he's busy, this is a good opportunity for me to show you the repaired bridge!$1\"/pause 500/move Robin 0 6 2 true/pause 500/move farmer 0 5 2 true/globalFade/viewport -600 -600/halt/pause 1000/pause 400/warp Robin 63 56/warp farmer 65 56/viewport 64 57 true/pause 1200/jump farmer/pause 700/jump farmer/pause 1000/move Robin 0 0 1/pause 500/speak Robin \"Sorry about the branches. We had a wind storm last week.$5#$b#Last time you saw the bridge a couple months ago it was partially collapsed. I did my best to repair it.$0#$b#It wasn't that easy. I've repaired wooden bridges before, but not stone ones.$2\"/pause 400/faceDirection farmer 3/pause 350/speak Robin \"So, with the bridge, fence, and shipping bin repairs, restoring electricity and water to the cottage...$0#$b#... Overhauling the cottage interior, renovating the fireplace, land survey, etc...$5\"/pause 500/emote Robin 40/pause 600/speak Robin \"The grand total of the cost will be 103,500g.$5\"/pause 250/emote farmer 16/speak Robin \"$q -1 null#(I will only have 500g left)#$r -1 0 robin_event3#I have just enough. I don't have the money for the greenhouse repairs now.\"/pause 500/move Robin 0 0 0/pause 500/move Robin 0 0 1/pause 1000/speak Robin \"Lewis should be finishing up right around now. We should head back to the cottage.$0\"/pause 1000/globalFade/viewport -1000 -1000/pause 2000/warp farmer 63 18/warp Robin 65 18/move farmer 0 0 1/move Robin 0 0 3/viewport 64 17 true/pause 1300/speak Robin \"I'll go get Lewis. He's inside.$1\"/pause 500/move Robin -1 0 0/move farmer 0 0 0/move Robin 0 -3 0/pause 1000/warp Robin -100 -100/playSound doorClose/pause 1500/pause 700/move farmer 0 -3 3/move farmer -2 0 2/pause 2000/emote farmer 40/pause 1300/warp Lewis 64 15/playSound doorClose/pause 300/move farmer 0 0 1/pause 200/playMusic SettlingIn/move Lewis 0 0 3/textAboveHead Lewis \"Ah, you're here!\"/pause 200/jump farmer/pause 1000/move Lewis -1 0 3/pause 750/speak Lewis \"It has been sometime since we last saw each other, @.$1#$b#I hope the improvements we've made to %farm Farm and your grandpa's cottage will make it easier to get settled in.$0#$b#Your furniture and belongings arrived a couple days ago! Everything is inside.$1\"/pause 500/faceDirection Robin 2/warp Robin 64 15/playSound doorClose/pause 400/move Lewis 0 0 1/pause 250/move Robin 0 0 3/pause 700/speak Lewis \"Robin, did you show @ the improvements out here?$0\"/pause 350/speak Robin \"I did! @ is happy with the work that's been done!$1\"/pause 400/jump farmer/pause 700/move Lewis 0 0 3/pause 800/move Lewis 0 0 1/pause 500/speak Lewis \"That's good to hear!$1\"/pause 1000/move farmer 0 0 2/pause 1150/move Robin 0 0 2/pause 1050/move Lewis 0 0 2/pause 400/playSound SpringBirds/pause 800/playSound SpringBirds/pause 100/move Lewis 0 2 2/pause 600/speak Lewis \"All these years is enough time for farmland to turn into this. You'll need various tools to get started.$0\"/pause 600/move Robin 0 0 3/pause 400/move Robin -1 0 3/pause 250/move farmer 0 0 1/pause 150/speak Robin \"Clint, the local blacksmith, made tools to help you get started on clearing away debris and trees.$0#$b#There's an axe, pickaxe, hoe, scythe, and watering can in your cottage!$1\"/pause 500/move Lewis -2 0 0/pause 400/move farmer 0 0 2/pause 500/speak Lewis \"It'll be a lot of work turning %farm Farm into what it once was, @. Your grandpa would be proud of you.#$b#Tomorrow, you should introduce yourself to the villagers. Everyone in the valley knows you just moved in.$1\"/pause 500/move farmer 0 0 1/pause 250/speak Robin \"Demetrius, my husband, is excited to meet you, @! Drop by our house in the mountains when you have a chance!$1\"/pause 400/move farmer 0 0 2/pause 300/speak Lewis \"The other farmers are thrilled to have another cultivator in the valley.$1#$b#You should stop by their farms when you get a chance as well.$0\"/pause 800/move Robin 0 2 3/pause 500/move Lewis 0 0 1/pause 1250/move Lewis 0 0 0/pause 450/speak Lewis \"We're going to leave so you can get settled in.$0#$b#If you have any questions or concerns, you know where to find us.$1\"/pause 500/move Robin -1 0 0/pause 300/speak Robin \"If you get cold, you can use the fireplace. It works great now!$1\"/pause 400/speak Lewis \"We will see you tomorrow. Get settled in!$1\"/pause 700/move Robin 9 0 3 true/pause 500/move Lewis 9 0 1 true/pause 500/move farmer 0 0 1 true/pause 1300/globalFade/viewport -1000 -1000/stopMusic/pause 2000/playSound rooster/pause 1000/end beginGame"
      }
    },

    {       //DEMETRIUS CAVE EVENT ALTERED
    "Action": "EditData",
    "Target": "data/events/farm",
    "Entries": {
    "65/m 25000/t 600 1200/H": "continue/64 15/farmer 64 16 2 Demetrius 64 18 0/pause 1200/speak Demetrius \"Hi @! I have some good news for you. A few days ago I made a breakthrough in my research on the local environment.$h#$b#I'll spare you the technical details and get to the point... You know that empty cave way over there, a little ways to the south east? Well, I have a way to turn it into something useful... for both of us.#$b#I'd like to set up the cave to attract some local species. That way I can observe them in a more controlled environment. And you can harvest whatever products they produce.#$b#I can either set up the cave to attract mushrooms or fruit bats. The bats will sometimes leave fruit for you to collect.\"/cave/speak Demetrius \"Alright! I'll go set it up for you right now! It shouldn't take any time at all.$h#$b#Thanks for letting me do this.\"/end dialogue Demetrius \"I'm excited to see what happens with that cave. Aren't you?#$e#I hope you're pleased with the work I did.\""
      }
    },

    {       //ROBIN OPENING EVENT DIALOGUE ADDITIONS
    "Action": "EditData",
    "Target": "characters/dialogue/Robin",
    "Entries": {  
    "robin_event1": "You're welcome, @!$1",
    "robin_event2": "Thank you, @!$1",
    "robin_event3": "Sorry it was so expensive, @...$2#$b#The bridge repairs alone came up to 45,000G. The stone slabs I purchased and equipment I rented wasn't cheap.$5",
	"robin_event4": "You're welcome, @!$1",
	"robin_event6": "Umm... yeah, no problem.$2",
      }
    },
  ]
}