mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Sexperience cum now gives fertilin
This commit is contained in:
		
							parent
							
								
									a64cecbab3
								
							
						
					
					
						commit
						3c9e97beb6
					
				
					 4 changed files with 41 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										17
									
								
								Common/Patches/ThingDefs/Sexperience_Cum.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Common/Patches/ThingDefs/Sexperience_Cum.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					<?xml version="1.0" encoding="utf-8" ?>
 | 
				
			||||||
 | 
					<Patch>
 | 
				
			||||||
 | 
						<!-- Add RJW Sex meditation focus icon to VanillaPsycastsExpanded -->
 | 
				
			||||||
 | 
						<Operation Class="PatchOperationFindMod">
 | 
				
			||||||
 | 
							<mods>
 | 
				
			||||||
 | 
								<li>RJW Sexperience</li>
 | 
				
			||||||
 | 
							</mods>
 | 
				
			||||||
 | 
							<match Class="PatchOperationAdd">
 | 
				
			||||||
 | 
								<xpath>/Defs/ThingDef[defName="GatheredCum"]/ingestible/outcomeDoers</xpath>
 | 
				
			||||||
 | 
								<value>
 | 
				
			||||||
 | 
									<li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset">
 | 
				
			||||||
 | 
										<FertilinPerUnit>1</FertilinPerUnit>
 | 
				
			||||||
 | 
									</li>
 | 
				
			||||||
 | 
								</value>
 | 
				
			||||||
 | 
							</match>
 | 
				
			||||||
 | 
						</Operation>
 | 
				
			||||||
 | 
					</Patch>
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,23 @@
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					using RimWorld;
 | 
				
			||||||
 | 
					using Verse;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace RJW_Genes
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
							protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if (GeneUtility.HasLifeForce(pawn))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
									float num = ingested.stackCount * this.FertilinPerUnit / 100;
 | 
				
			||||||
 | 
									GeneUtility.OffsetLifeForce(pawn, num);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							public float FertilinPerUnit = 1f;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -118,6 +118,7 @@
 | 
				
			||||||
    <Compile Include="Genes\Life_Force\CompAbilityEffect_LifeForceCost.cs" />
 | 
					    <Compile Include="Genes\Life_Force\CompAbilityEffect_LifeForceCost.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Life_Force\CompAbilityEffect_CockEater.cs" />
 | 
					    <Compile Include="Genes\Life_Force\CompAbilityEffect_CockEater.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Life_Force\CompProperties_AbilityCockEater.cs" />
 | 
					    <Compile Include="Genes\Life_Force\CompProperties_AbilityCockEater.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Genes\Life_Force\IngestionOutcomeDoer_LifeForceOffset.cs" />
 | 
				
			||||||
    <Compile Include="Interactions\CompAbility_SexInteractionRequirements.cs" />
 | 
					    <Compile Include="Interactions\CompAbility_SexInteractionRequirements.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Life_Force\CompAbilityEffect_PussyHeal.cs" />
 | 
					    <Compile Include="Genes\Life_Force\CompAbilityEffect_PussyHeal.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Life_Force\CompProperties_AbilityLifeForceCost.cs" />
 | 
					    <Compile Include="Genes\Life_Force\CompProperties_AbilityLifeForceCost.cs" />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue