mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Made custom interactiondef for flirt
The descriptions are still the same as chitchat
This commit is contained in:
		
							parent
							
								
									0b6bfa1ce6
								
							
						
					
					
						commit
						5c0af8a430
					
				
					 6 changed files with 40 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,7 @@ namespace RJW_Genes
 | 
			
		|||
		{
 | 
			
		||||
			return Toils_General.Do(delegate
 | 
			
		||||
			{
 | 
			
		||||
				if (this.pawn.interactions.TryInteractWith(this.Target, InteractionDefOf.Chitchat))
 | 
			
		||||
				if (this.pawn.interactions.TryInteractWith(this.Target, ThoughtDefOf.rjw_genes_flirt))
 | 
			
		||||
				{
 | 
			
		||||
					Need_Sex need_Sex = this.Target.needs.TryGetNeed<Need_Sex>();
 | 
			
		||||
					need_Sex.CurLevel += -0.01f;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ namespace RJW_Genes
 | 
			
		|||
			if (pawn.CanReserveAndReach(target, PathEndMode.InteractionCell, Danger.Some) && target.CanReserve(pawn, 1, 0, null, false))				
 | 
			
		||||
			{
 | 
			
		||||
				//target is not busy
 | 
			
		||||
				if (!(((jobs != null) ? jobs.curJob : null) != null && (jobs.curJob.playerForced || !CasualSex_Helper.quickieAllowedJobs.Contains(jobs.curJob.def))))
 | 
			
		||||
				if (!(((jobs != null) ? jobs.curJob : null) != null && jobs.curJob.playerForced))
 | 
			
		||||
                {
 | 
			
		||||
					float willingness = TargetWillingness(pawn, target);
 | 
			
		||||
					if (Rand.Chance(willingness))
 | 
			
		||||
| 
						 | 
				
			
			@ -80,7 +80,7 @@ namespace RJW_Genes
 | 
			
		|||
						{
 | 
			
		||||
							ModLog.Message(" find_partner(" + pawn_name + "): I interested in banging but that's cheating");
 | 
			
		||||
						}
 | 
			
		||||
						//Succubus has a small chance to seduce even if target is in relationship, maybe setting
 | 
			
		||||
						//Succubus has a small chance to seduce even if target is in relationship, maybe setting like succubus can homewreck
 | 
			
		||||
						willingness *= 0.1f;
 | 
			
		||||
					}
 | 
			
		||||
                    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -130,7 +130,7 @@
 | 
			
		|||
    <Compile Include="Genes\Life_Force\Gene_LifeForceDrain.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\IncidentWorker_SuccubusDreamVisit.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\IngestionOutcomeDoer_LifeForceOffset.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\JobGiver_DoQuickieWith.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\JobGiver_TryQuickieWith.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\JobDrivers\JobDriver_Flirt.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\JobDrivers\JobDriver_SexOnSpotReceiver.cs" />
 | 
			
		||||
    <Compile Include="Genes\Life_Force\JobDrivers\JobDriver_SexOnSpot.cs" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,5 +13,8 @@ namespace RJW_Genes
 | 
			
		|||
        public static readonly ThoughtDef rjw_genes_cock_eaten;
 | 
			
		||||
        public static readonly ThoughtDef rjw_genes_seduced;
 | 
			
		||||
        public static readonly ThoughtDef rjw_critical_fertilin;
 | 
			
		||||
 | 
			
		||||
        //Others with same names but other defs than in genedefof
 | 
			
		||||
        public static readonly InteractionDef rjw_genes_flirt;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue