mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	reallowed thrusting for non-animating pawns
This commit is contained in:
		
							parent
							
								
									3efe5bd22a
								
							
						
					
					
						commit
						ac6deb9553
					
				
					 3 changed files with 19 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 | 
			
		||||
<Manifest>
 | 
			
		||||
  <identifier>Rimworld-Animations</identifier>
 | 
			
		||||
  <version>1.1.1</version>
 | 
			
		||||
  <version>1.1.2</version>
 | 
			
		||||
</Manifest>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
using HarmonyLib;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using rjw;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
| 
						 | 
				
			
			@ -29,7 +30,23 @@ namespace Rimworld_Animations
 | 
			
		|||
                __instance.sex_ticks--;
 | 
			
		||||
                __instance.Orgasm();
 | 
			
		||||
 | 
			
		||||
                return false;
 | 
			
		||||
 | 
			
		||||
				if (pawn.IsHashIntervalTick(__instance.ticks_between_thrusts))
 | 
			
		||||
				{
 | 
			
		||||
					__instance.ChangePsyfocus(pawn, target);
 | 
			
		||||
					__instance.Animate(pawn, target);
 | 
			
		||||
					__instance.PlaySexSound();
 | 
			
		||||
					if (!__instance.isRape)
 | 
			
		||||
					{
 | 
			
		||||
						pawn.GainComfortFromCellIfPossible(false);
 | 
			
		||||
						if (target is Pawn)
 | 
			
		||||
						{
 | 
			
		||||
							(target as Pawn).GainComfortFromCellIfPossible(false);
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				return false;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue