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"?>
 | 
					<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 | 
				
			||||||
<Manifest>
 | 
					<Manifest>
 | 
				
			||||||
  <identifier>Rimworld-Animations</identifier>
 | 
					  <identifier>Rimworld-Animations</identifier>
 | 
				
			||||||
  <version>1.1.1</version>
 | 
					  <version>1.1.2</version>
 | 
				
			||||||
</Manifest>
 | 
					</Manifest>
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,5 @@
 | 
				
			||||||
using HarmonyLib;
 | 
					using HarmonyLib;
 | 
				
			||||||
 | 
					using RimWorld;
 | 
				
			||||||
using rjw;
 | 
					using rjw;
 | 
				
			||||||
using System;
 | 
					using System;
 | 
				
			||||||
using System.Collections.Generic;
 | 
					using System.Collections.Generic;
 | 
				
			||||||
| 
						 | 
					@ -29,6 +30,22 @@ namespace Rimworld_Animations
 | 
				
			||||||
                __instance.sex_ticks--;
 | 
					                __instance.sex_ticks--;
 | 
				
			||||||
                __instance.Orgasm();
 | 
					                __instance.Orgasm();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									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 false;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue