{ 
	"Changes":
	[		

		{
		"LogName":"Mateo's Schedule - Not Unlocked",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
			// Prior to Mateo being unlocked.
			"spring": "0 EastScarp_TNPCWaitingWarpRoom 11 5 2/1200 EastScarp_TNPCWaitingWarpRoom 11 6 2/1800 EastScarp_TNPCWaitingWarpRoom 11 5 2",

		},
		"When": { "HasSeenEvent |contains=SnS.Ch1.Mateo.1": false }		
		},

		{
		"LogName":"Mateo's Schedule - Pre 4 Heart",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{

			// After Mateo has been unlocked, prior to 4 Heart Event. In the mines, then at the beach, then home.
			
			"rain": "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_violin++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_violin|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 
			"spring": "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_violin++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_violin|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 

		},
		"When": 
			{ "HasSeenEvent |contains=SnS.Ch1.Mateo.1": true, "HasConversationTopic |contains=MateoPain": false }	
		},	

		{
		"LogName":"Mateo's Schedule - Post 4 Heart",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{

			// After seeing the the 4 Heart Event. Accounts for after the guild has been built. Spends weekends hanging around ES, and Tue/Thur in the library unless it's Fall. 
			"rain": "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_violin++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_violin|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",
			"spring":  "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_violin++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_violin|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",
			"spring_Tue": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1000 ArchaeologyHouse 4 10 2 Mateo_book/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",  
			"spring_Thu": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1000 ArchaeologyHouse 4 10 2 Mateo_book/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",  
			"spring_Fri":  "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Saloon 40 18 2/1310 Saloon 40 18 2 Mateo_drink++1300 Saloon 43 17 2/1310 Saloon 43 17 2 Mateo_sit_stare++1300 Saloon 26 23 3++1300 Saloon 6 17 2/1310 Saloon 6 17 2 Mateo_drink++1300 Saloon 13 20 2/1310 Saloon 13 20 2 Mateo_sit_stare|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",
			"spring_Sat": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1300 EastScarp_VillageInn 31 11 2 Mateo_violin/1600 EastScarp_VillageInn 43 11 2 Mateo_drink/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 
			"spring_Sun": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1000 EastScarp_Village 75 120 2/1010 EastScarp_Village 75 121 2/1020 EastScarp_Village 75 121 2 Mateo_sit_stare/1400 EastScarp_Village 75 120 2/1410 EastScarp_Village 35 98 2/1420 EastScarp_Village 35 98 2 Mateo_drink/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",
			"fall_Tue": "0 Mountain 63 14 2/610 63 14 2 Mateo_violin/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book|InputSeparator=++}}/2000 {{MateoSpawn}} 2 Mateo_book",
			"fall_Thu": "0 Mountain 63 14 2/610 63 14 2 Mateo_violin/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book|InputSeparator=++}}/2000 {{MateoSpawn}} 2 Mateo_book",	

		},
		"When": 
			{ "HasSeenEvent |contains=SnS.Ch1.Mateo.3": true, "HasConversationTopic |contains=MateoPain": false}	
		},

		{
		"LogName":"Mateo's Schedule - Dating Aideen",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
	
			// Mateo will spend weekends with Aideen if they're together.
			"spring": "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Beach 43 34 2/1310 Beach 43 34 2 Mateo_sit_stare++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_drink++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_book++1300 Beach 89 39 2/1310 Beach 89 39 2 Mateo_violin++1300 Beach 44 24 2/1310 Beach 42 24 2 Mateo_violin|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",  
			"spring_Fri": "0 Mine 16 4 2/610 Mine 16 4 2 Mateo_sword/{{Random: 1300 Saloon 40 18 2/1310 Saloon 40 18 2 Mateo_drink++1300 Saloon 43 17 2/1310 Saloon 43 17 2 Mateo_sit_stare++1300 Saloon 26 23 3++1300 Saloon 6 17 2/1310 Saloon 6 17 2 Mateo_drink++1300 Saloon 13 20 2/1310 Saloon 13 20 2 Mateo_sit_stare|InputSeparator=++}}/1700 EastScarp_House1 8 22 2 Mateo_book/1800 EastScarp_House1 7 8 3", 
			"spring_Sat": "0 EastScarp_House1 8 22 2/{{Random: 1000 EastScarp_House1 8 22 2 Mateo_book++1000 EastScarp_House1 8 22 2 Mateo_violin++1000 EastScarp_House1 8 22 2 Mateo_drink|InputSeparator=++}}/1200 EastScarp_Village 42 81 2/1210 EastScarp_Village 42 82 2 Mateo_sit_stare/1300 EastScarp_Village 35 98 2/1310 EastScarp_Village 35 98 2 Mateo_drink/1600 EastScarp_House1 8 22 2 Mateo_book/1800 EastScarp_House1 7 8 3",
			"spring_Sun": "0 EastScarp_House1 8 22 2/{{Random: 1000 EastScarp_House1 8 22 2 Mateo_book++1000 EastScarp_House1 8 22 2 Mateo_violin++1000 EastScarp_House1 8 22 2 Mateo_drink|InputSeparator=++}}/1200 EastScarp_Village 75 120 2/1210 EastScarp_Village 75 121 2/1220 EastScarp_Village 75 121 2 Mateo_sit_stare/1400 EastScarp_Village 75 120 2/1410 EastScarp_Village 35 98 2/1420 EastScarp_Village 35 98 2 Mateo_drink/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",

		},
		"When": 
			{
			"HasFlag |contains=RivalHearts_AideenMateo": true,
			"HasConversationTopic |contains=MateoPain": false,
			}	
		},

		{
		"LogName":"Mateo's Schedule - Winter Befriended",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
		
			// Mateo will not spend time in the mines after Harvey addresses their seasonal affective disorder.
			"winter": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1300 EastScarp_VillageInn 31 11 2 Mateo_violin/1600 EastScarp_VillageInn 43 11 2 Mateo_drink/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}",  
			"winter_Fri": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/{{Random: 1300 Saloon 40 18 2/1310 Saloon 40 18 2 Mateo_drink++1300 Saloon 43 17 2/1310 Saloon 43 17 2 Mateo_sit_stare++1300 Saloon 26 23 3++1300 Saloon 6 17 2/1310 Saloon 6 17 2 Mateo_drink++1300 Saloon 13 20 2/1310 Saloon 13 20 2 Mateo_sit_stare|InputSeparator=++}}/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 
			"winter_Sat": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1000 ArchaeologyHouse 4 10 2 Mateo_book/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 
			"winter_12": "610 {{MateoSpawn}} 2/0900 Hospital 20 11 2/1300 ArchaeologyHouse 4 10 2 Mateo_book/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 
			"winter_26": "610 {{MateoSpawn}} 2/0900 Hospital 20 11 2/1300 ArchaeologyHouse 4 10 2 Mateo_book/{{Random: 1800 {{MateoSpawn}} 2 Mateo_violin++1800 {{MateoSpawn}} 2 Mateo_book++1800 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}", 

		},
		"When": 
			{
			"Hearts:Mateo": "10",
			"HasSeenEvent |contains=SnS.Ch1.Mateo.3": true,
			"HasConversationTopic |contains=MateoPain": false,
			}	
		},

		{
		"LogName":"Mateo's Schedule - SVE Community Day",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
			// Will attend Community Day if Stardew Valley Expanded is installed.
			"spring_22": "610 {{MateoSpawn}} 2/1000 CommunityCenter 55 13 2/1030 CommunityCenter 55 13 2 Mateo_sword/1700 {{MateoSpawn}} 2 Mateo_book",
			"summer_22": "610 {{MateoSpawn}} 2/1000 CommunityCenter 55 13 2/1030 CommunityCenter 55 13 2 Mateo_sword/1700 {{MateoSpawn}} 2 Mateo_book",
			"fall_22": "610 {{MateoSpawn}} 2/1000 CommunityCenter 55 13 2/1030 CommunityCenter 55 13 2 Mateo_sword/1700 {{MateoSpawn}} 2 Mateo_book",
			"winter_22": "610 {{MateoSpawn}} 2/1000 CommunityCenter 55 13 2/1030 CommunityCenter 55 13 2 Mateo_sword/1700 {{MateoSpawn}} 2 Mateo_book",

		},
			"When": 
			{
			"HasMod |contains=FlashShifter.StardewValleyExpandedCP": true,
			"HasSeenEvent |contains=SnS.Ch1.Mateo.3": true,
			"HasConversationTopic |contains=MateoPain": false,
			}	
			
		},

		{
		"LogName":"Mateo's Schedule - Night Market ",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
			// Mateo will attend the Night Market.
			"winter_15": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1300 Beach 64 24 2 Mateo_drink/2200 {{MateoSpawn}} 2 Mateo_book",
			"winter_16": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1300 Beach 64 24 2 Mateo_drink/2200 {{MateoSpawn}} 2 Mateo_book",
			"winter_17": "610 {{MateoSpawn}} 2/{{Random: 620 {{MateoSpawn}} 2 Mateo_violin++620 {{MateoSpawn}} 2 Mateo_book++620 {{MateoSpawn}} 2 Mateo_drink|InputSeparator=++}}/1300 Beach 64 24 2 Mateo_drink/2200 {{MateoSpawn}} 2 Mateo_book",

		},
			"When": 
			{
			"HasSeenEvent |contains=SnS.Ch1.Mateo.3": true,
			"HasConversationTopic |contains=MateoPain": false,
			}	
			
		},

		{
		"LogName":"Mateo's Schedule - Hospital",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
			// For when Mateo is in recovery.
			"spring": "0 EastScarp_TNPCWaitingWarpRoom 11 5 2/1200 EastScarp_TNPCWaitingWarpRoom 11 6 2/1800 EastScarp_TNPCWaitingWarpRoom 11 5 2",
		},
		
			"When":
			{
			"HasConversationTopic |contains=MateoPain": true,
			}	
			
		},

		{
		"LogName":"Mateo's Schedule - Marriage",
		"Action":"EditData",
		"Target":"Characters/Schedules/Mateo",
		"Entries":
		{
			// For when Mateo is married.
			"marriage_Mon": "800 EastScarp_CoastalGuild 8 5 2/{{Random: 900 EastScarp_CoastalGuild 8 5 2++900 EastScarp_CoastalGuild 8 5 2 Mateo_book++900 EastScarp_CoastalGuild 8 13 2 Mateo_book++900 EastScarp_CoastalGuild 14 12 2 Mateo_drink++900 EastScarp_CoastalGuild 8 5 2 Mateo_violin|InputSeparator=++}}/1700 BusStop -1 23 3",
			"marriage_Wed": "800 EastScarp_CoastalGuild 8 5 2/{{Random: 900 EastScarp_CoastalGuild 8 5 2++900 EastScarp_CoastalGuild 8 5 2 Mateo_book++900 EastScarp_CoastalGuild 8 13 2 Mateo_book++900 EastScarp_CoastalGuild 14 12 2 Mateo_drink++900 EastScarp_CoastalGuild 8 5 2 Mateo_violin}}/1700 BusStop -1 23 3",
            "marriage_Fri": "800 EastScarp_CoastalGuild 8 5 2/{{Random: 900 EastScarp_CoastalGuild 8 5 2++900 EastScarp_CoastalGuild 8 5 2 Mateo_book++900 EastScarp_CoastalGuild 8 13 2 Mateo_book++900 EastScarp_CoastalGuild 14 12 2 Mateo_drink++900 EastScarp_CoastalGuild 8 5 2 Mateo_violin}}/1700 BusStop -1 23 3",
		}
				
		}
	]
}

//(0 = up, 1 = right, 2 = down, 3 = left)




