mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	facial animation tweaks
This commit is contained in:
		
							parent
							
								
									8cbb5ef03b
								
							
						
					
					
						commit
						401c2c3866
					
				
					 4 changed files with 21 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -6,6 +6,7 @@
 | 
			
		|||
		<context>MapOnly</context>
 | 
			
		||||
		<eventNames />
 | 
			
		||||
		<maxSimultaneous>1</maxSimultaneous>
 | 
			
		||||
		<maxVoices>1</maxVoices>
 | 
			
		||||
		<subSounds>
 | 
			
		||||
			<li>
 | 
			
		||||
				<grains>
 | 
			
		||||
| 
						 | 
				
			
			@ -34,6 +35,7 @@
 | 
			
		|||
		<context>MapOnly</context>
 | 
			
		||||
		<eventNames />
 | 
			
		||||
		<maxSimultaneous>1</maxSimultaneous>
 | 
			
		||||
		<maxVoices>1</maxVoices>
 | 
			
		||||
		<subSounds>
 | 
			
		||||
			<li>
 | 
			
		||||
				<grains>
 | 
			
		||||
| 
						 | 
				
			
			@ -62,6 +64,7 @@
 | 
			
		|||
		<context>MapOnly</context>
 | 
			
		||||
		<eventNames />
 | 
			
		||||
		<maxSimultaneous>1</maxSimultaneous>
 | 
			
		||||
		<maxVoices>1</maxVoices>
 | 
			
		||||
		<subSounds>
 | 
			
		||||
			<li>
 | 
			
		||||
				<grains>
 | 
			
		||||
| 
						 | 
				
			
			@ -118,6 +121,7 @@
 | 
			
		|||
    <context>MapOnly</context>
 | 
			
		||||
    <eventNames />
 | 
			
		||||
    <maxSimultaneous>1</maxSimultaneous>
 | 
			
		||||
    <maxVoices>1</maxVoices>
 | 
			
		||||
    <subSounds>
 | 
			
		||||
      <li>
 | 
			
		||||
        <grains>
 | 
			
		||||
| 
						 | 
				
			
			@ -168,6 +172,7 @@
 | 
			
		|||
    <context>MapOnly</context>
 | 
			
		||||
    <eventNames />
 | 
			
		||||
    <maxSimultaneous>1</maxSimultaneous>
 | 
			
		||||
    <maxVoices>1</maxVoices>
 | 
			
		||||
    <subSounds>
 | 
			
		||||
      <li>
 | 
			
		||||
        <grains>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,7 @@
 | 
			
		|||
      <Private>False</Private>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <Reference Include="RJW">
 | 
			
		||||
      <HintPath>..\RJW\1.1\Assemblies\RJW.dll</HintPath>
 | 
			
		||||
      <HintPath>..\rjw-master\1.1\Assemblies\RJW.dll</HintPath>
 | 
			
		||||
      <Private>False</Private>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <Reference Include="System" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -72,6 +72,12 @@ namespace Rimworld_Animations {
 | 
			
		|||
			"UseFM"
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		public static List<string> rjwRapeDefNames = new List<string> {
 | 
			
		||||
			"RapeComfortPawn",
 | 
			
		||||
			"RandomRape",
 | 
			
		||||
			"RapeEnemy"
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -79,6 +85,11 @@ namespace Rimworld_Animations {
 | 
			
		|||
				__result = true;
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
			else if (___jobDef != null && ___jobDef == "WaitCombat" && job?.defName != null && rjwRapeDefNames.Contains(job?.defName)) {
 | 
			
		||||
				__result = true;
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
			return true;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			@ -89,6 +100,10 @@ namespace Rimworld_Animations {
 | 
			
		|||
				__result = true;
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
			if (___jobDef != null && ___jobDef == "WaitCombat" && jobName != null && rjwRapeDefNames.Contains(jobName)) {
 | 
			
		||||
				__result = true;
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			return true;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue