mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	bugfix: added jobdefs to facialanimation
This commit is contained in:
		
							parent
							
								
									d18563f77a
								
							
						
					
					
						commit
						416f88b874
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -50,7 +50,10 @@ namespace Rimworld_Animations {
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		public static List<string> rjwLovinDefNames = new List<string>{
 | 
			
		||||
			"Lovin",
 | 
			
		||||
			"JoinInBed",
 | 
			
		||||
			"JoinInBedAnimation",
 | 
			
		||||
			"GettinLovedAnimation",
 | 
			
		||||
			"GettinLoved",
 | 
			
		||||
			"GettinLicked",
 | 
			
		||||
			"GettinSucked",
 | 
			
		||||
| 
						 | 
				
			
			@ -69,6 +72,10 @@ namespace Rimworld_Animations {
 | 
			
		|||
 | 
			
		||||
		public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) {
 | 
			
		||||
 | 
			
		||||
			if(job?.defName != null) {
 | 
			
		||||
				Log.Message("Defname: " + job.defName);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if(___jobDef != null && ___jobDef == "Lovin" && job?.defName != null && rjwLovinDefNames.Contains(job?.defName)) {
 | 
			
		||||
				__result = true;
 | 
			
		||||
				return false;
 | 
			
		||||
| 
						 | 
				
			
			@ -79,6 +86,11 @@ namespace Rimworld_Animations {
 | 
			
		|||
 | 
			
		||||
		public static bool Prefix_IsSameB(string jobName, string ___jobDef, ref bool __result) {
 | 
			
		||||
 | 
			
		||||
			if (jobName != null) {
 | 
			
		||||
				Log.Message("Defname: " + jobName);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
			if (___jobDef != null && ___jobDef == "Lovin" && jobName != null && rjwLovinDefNames.Contains(jobName)) {
 | 
			
		||||
				__result = true;
 | 
			
		||||
				return false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue