{
    "Changes": [
        {
            "Action": "EditData",
            "Target": "Data/Mail",
            "Entries": {
                "AndyStrawberrySeeds": "{{i18n:Mail.AndyStrawberrySeeds}}",
                "GuntherGift": "{{i18n:Mail.GuntherGift}}",
                "AndyJojaCola": "{{i18n:Mail.AndyJojaCola}}",
                "AndyAncientSeeds": "{{i18n:Mail.AndyAncientSeeds}}",
                "SusanIntroduction": "{{i18n:Mail.SusanIntroduction}}",
                "SusanFertilizer": "{{i18n:Mail.SusanFertilizer}}",
                "SusanMelonSeeds": "{{i18n:Mail.SusanMelonSeeds}}",
                "VictorDewey": "{{i18n:Mail.VictorDewey}}",
                "OliviaWine": "{{i18n:Mail.OliviaWine}}",
                "OliviaCellar": "{{i18n:Mail.OliviaCellar}}",
                "GusSophia": "{{i18n:Mail.GusSophia}}",
                "HaleyTalk": "{{i18n:Mail.HaleyTalk}}",
                "KentSummit": "{{i18n:Mail.KentSummit}}",
                "PierreSVERebate": "{{i18n:Mail.PierreSVERebate}}",
                "JojaRockslideNotice": "{{i18n:Mail.JojaRockslideNotice}}",
                "SVEadvertisement2": "{{i18n:Mail.SVEadvertisement2}}",
				//"SVEadvertisement1": "Dear resident:^^Our records indicate that you may not have a membership at JojaMart. Did you know that Joja has consistently scored top in the industry for quality and value? A membership may seem like a big investment, but it unlocks so much - it's a real lifechanger! Join today, and become part of the Joja family.^^JojaMart: We Value Your Business",
                //"SVEadvertisement3": "Is work stressing you out? Why not take a trip to the Fern Islands? The Islands are a bustling center of commerce, famous for ring fruit! Even those on a tight budget will find plenty to enjoy! From the sparkling-clean beaches to lush tropical forests, the Fern Islands are a natural oasis that appeals to beachgoers, birdwatchers, and appreciators of nature from all walks of life. Come chase your bliss on the Fern Islands!^^This advertisement paid for by the Fern Islands Bureau of Tourism.",
                //"SVEadvertisement4": "Getting sick of watering crops? Upgraded tools still not doing the job? Running a farm is hard work. Consider hiring some farmhands to help! Especially in high-output seasons like the fall, having a few spare folks around can be invaluable for saving time. Plus, you help create jobs for your local community. Check your local bulletin board to see if anyone's looking for work!",
                //"SVEadvertisement5": "ON SALE FOR A LIMITED TIME:^^Special yeast starter with nutrients designed to optimize wine fermentation from a quality-controlled yeast ranch. Has produced award-winning wine consistently since the strain was started almost twenty years ago. Inquiries welcome at Sunshine Vineyard.",
                //"SVEadvertisement6": "Are you homebrewing beer? Fermenting your own grapes? Sick of your pricy liquids leaking or drying up in low-quality storage? Try hardwood barrels! They don't leak, they naturally repel liquids, and they're almost completely immune to temperature changes, so no more nasty cracks. Craft them yourself, or take the train to Grampleton and pick some up from one of our many talented artisans!",
                "robinKitchenLetter": "{{i18n:Mail.robinKitchenLetter}}",
                "JasThankYouLetter": "{{i18n:Mail.JasThankYouLetter}}",
                "winter_7": "{{i18n:Mail.winter_7}}",
                "OliviaDatingLetter": "{{i18n:Mail.OliviaDatingLetter}}",
                "OliviaPartyLetter": "{{i18n:Mail.OliviaPartyLetter}}",
                "MarlonLetterCherryBomb": "{{i18n:Mail.MarlonLetterCherryBomb}}",
                "MarlonLetterCherryBombX": "{{i18n:Mail.MarlonLetterCherryBombX}}",
                "MarlonLetterBomb": "{{i18n:Mail.Marlon.LetterBomb}}",
                "MarlonLetterMegaBomb": "{{i18n:Mail.MarlonLetterMegaBomb}}",
                "MarlonLetterPotions": "{{i18n:Mail.MarlonLetterPotions}}",
                "ShrineOfIllusionsLetter": "{{i18n:Mail.ShrineOfIllusionsLetter}}",
                "AndyPictureLetter": "{{i18n:Mail.AndyPictureLetter}}",
                "SophiaThankYouLetter": "{{i18n:Mail.SophiaThankYouLetter1}} FlashShifter.StardewValleyExpandedCP_Aged_Blue_Moon_Wine {{i18n:Mail.SophiaThankYouLetter2}}",
                "escortedGunther": "{{i18n:Mail.escortedGunther}}",
                "harveyBalloon": "{{i18n:Mail.harveyBalloon}}",
                "JojaSeeds": "{{i18n:Mail.JojaSeeds}}",
                "MysteriousWizardLetter": "{{i18n:Mail.MysteriousWizardLetter}}",
                "ThiefOfJusticeMovie": "{{i18n:Mail.ThiefOfJusticeMovie}}",
                "GuntherGaldoranGemReward": "{{i18n:Mail.GuntherGaldoranReward1}} FlashShifter.StardewValleyExpandedCP_Galdoran_Gem {{i18n:Mail.GuntherGaldoranReward2}}",
                "LanceLifeElixirs": "{{i18n:Mail.LanceLifeElixirs}}",
                "AndyPaycheck": "{{i18n:Mail.AndyPaycheck}}",
                "QiGoldenPiggyBankReward": "{{i18n:Mail.QiGoldenPIggyBankReward1}}FlashShifter.StardewValleyExpandedCP_Golden_Piggy_Bank{{i18n:Mail.QiGoldenPIggyBankReward2}}",
				"AndyCooking": "{{i18n:Mail.AndyCooking}}",
				"VictorCooking": "{{i18n:Mail.VictorCooking}}",
				"OliviaCooking": "{{i18n:Mail.OliviaCooking}}",
				"ClaireCooking": "{{i18n:Mail.ClaireCooking}}",
				"GuntherSilvianCooking": "{{i18n:Mail.GuntherSilvianCooking}}",
				"ScarlettCooking": "{{i18n:Mail.ScarlettCooking}}",
				"MartinCooking": "{{i18n:Mail.MartinCooking}}",
				"MorganCooking": "{{i18n:Mail.MorganCooking}}",
				"LanceCooking": "{{i18n:Mail.LanceCooking}}",
				"GusOrangeChicken": "{{i18n:Mail.GusOrangeChicken}}",
				"HenchmanFired": "{{i18n:Mail.HenchmanFired}}",
				"SusanCooking": "{{i18n:Mail.SusanCooking}}",
            }
        },
		
		//Marsh Tonic mail if Aimon's mod is not installed
		{
            "Action": "EditData",
            "Target": "Data/Mail",
			"When": {
	          "HasMod|contains=Aimon111.WitchSwampOverhaulCP": false
	        },
            "Entries": {
				"HenchmanMarshTonics": "{{i18n:Mail.HenchmanMarshTonics}}",
            }
        },
		
		//Allows Susan's cooking recipe to only be mailed to the player during the winter season and prevents a mailbox icon glitch
		{
            "Action": "EditData",
            "Target": "Data/TriggerActions",
            "Entries": {
              "{{ModID}}_SusanGinger": {
                "Id": "{{ModID}}_SusanGinger",
                "Trigger": "DayEnding",
                "Condition": "PLAYER_HEARTS Current Susan 3, SEASON Winter",
                "Actions": [
                  "AddMail Current SusanCooking tomorrow"
                ]
              }
            }
        },
		
		{
            "Action": "EditData",
            "Target": "Data/TriggerActions",
			"When": {
	          "HasMod|contains=Aimon111.WitchSwampOverhaulCP": false
	        },
            "Entries": {
              "{{ModID}}_HenchmanTonics": {
                "Id": "{{ModID}}_HenchmanTonics",
                "Trigger": "DayEnding",
                "Condition": "PLAYER_HAS_SEEN_EVENT Current 1337737",
                "Actions": [
                  "AddMail Current HenchmanMarshTonics tomorrow"
                ]
              }
            }
        },
		
        { //loads custom letter backgrounds
            "Action": "Load", "Priority": "Low",
            "Target": "Mods/FlashShifter.StardewValleyExpandedCP/LetterBackgrounds",
            "FromFile": "Assets/Tilesheets/SVE_Letter_Backgrounds.png"
        },
        { //Edits out "Mayor" if Morris becomes Mayor in the Joja route
            "Action": "EditData",
            "Target": "Data/Mail",
            "When": {
                "HasSeenEvent": "6665292"
            },
            "Entries": {
                "quest10": "{{i18n:Mail.Mayor.01}}",
                "quest35": "{{i18n:Mail.Mayor.02}}",
                "quest100": "{{i18n:Mail.Mayor.03}}",
                "EmilyClothingTherapy": "{{i18n:Mail.Mayor.04}}",
                "foundLostTools": "{{i18n:Mail.Mayor.05}}",
                "winter_18": "{{i18n:Mail.Mayor.06}}",
                "spring_12": "{{i18n:Mail.Mayor.07}}",
                "spring_23": "{{i18n:Mail.Mayor.08}}",
                "summer_10": "{{i18n:Mail.Mayor.09}}",
                "fall_9": "{{i18n:Mail.Mayor.10}}",
                "fall_26": "{{i18n:Mail.Mayor.11}}",
                "winter_7": "{{i18n:Mail.Mayor.12}}",
                "summer_21_2": "{{i18n:Mail.Mayor.13}}",
                "winter_24": "{{i18n:Mail.Mayor.14}}",
            }
        },
        {
            "Action": "EditData",
            "Target": "Data/Events/Farm",
            "Entries": {
                "7472145/f Andy 1753/x AndyJojaCola": "null",
                "7144868/j 10/x SusanIntroduction": "null",
                "7374831/f Susan 1501/z winter/x SusanFertilizer": "null",
                "7387851/f Susan 1/z spring/z fall/z winter/x SusanMelonSeeds": "null",
                "7086801/f Olivia 2001/x OliviaWine": "null",
                "7080831/f Pierre 1503/x PierreSVERebate": "null",
                "7080800/u 1/y 1/z spring/z fall/z winter/x JojaRockslideNotice": "null",
                //"8080800/u 5/y 1/x SVEadvertisement1": "null", 
                "8080801/u 28/y 1/x SVEadvertisement2": "null",
                //"8080802/m 500000/x SVEadvertisement3": "null",
                //"8080807/m 1000000/x SVEadvertisement4": "null",   << advertisement mail is cut content
                //"8080803/m 1500000/x SVEadvertisement5": "null",
                //"8080804/m 2500000/x SVEadvertisement6": "null",
                "1337001/f Marlon 500/x MarlonLetterCherryBomb": "null",
                "1337002/f Marlon 1000/x MarlonLetterCherryBombX": "null",
                "1337003/f Marlon 1500/x MarlonLetterBomb": "null",
                "1337004/f Marlon 2000/x MarlonLetterMegaBomb": "null",
                "1337005/f Marlon 2500/x MarlonLetterPotions": "null",
                "1337306/e 1000035/f Wizard 1000/x ShrineOfIllusionsLetter": "null",
                "1337307/e 5000005/f Andy 2500/x AndyPictureLetter": "null",
                "1337308/e 502261/x JojaSeeds": "null",
                "1337310/e 4269703/x ThiefOfJusticeMovie": "null",
                "1337335/m 10000000/x QiGoldenPiggyBankReward": "null",
				"1337336/e 8185293/x GusOrangeChicken": "null",
            }
        },
        {
            "Action": "EditData",
            "Target": "Data/Events/Farm",
            "When": {
                "Relationship:Olivia": "Dating"
            },
            "Entries": {
                "4164189/x OliviaDatingLetter": "null",
                "4164253/e 8982805/f Olivia 2500/x OliviaPartyLetter": "null"
            }
        },
        {
            "Action": "EditData",
            "Target": "Data/Events/Farm",
            "When": {
                "Relationship:Wizard": "Dating, Engaged, Married"
            },
            "Entries": {
                "1337309/f Wizard 2500/x MysteriousWizardLetter": "null"
            }
        },
        {
            "Action": "EditData",
            "Target": "Data/ExtraDialogue",
            "Entries": {
                "PurchasedItem_Teen": "{{i18n:Mail.PurchasedItem1}}{2}{{i18n:Mail.PurchasedItem2}}",
            }
        },
    ]
}