mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Moved Xenotypes to more common location, reverted change to eating cum item, changed patch order of pythonkin patches
This commit is contained in:
		
							parent
							
								
									a1c31f74f6
								
							
						
					
					
						commit
						9effc7ffa3
					
				
					 4 changed files with 50 additions and 49 deletions
				
			
		| 
						 | 
				
			
			@ -8,15 +8,17 @@ namespace RJW_Genes
 | 
			
		|||
	/// </summary>
 | 
			
		||||
    public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer
 | 
			
		||||
	{
 | 
			
		||||
		public const float FERTILIN_PER_UNIT = 1f;
 | 
			
		||||
		public const float DEFAULT_FERTILIN_PER_UNIT = 1f;
 | 
			
		||||
		public float FertilinPerUnit = 1f;
 | 
			
		||||
 | 
			
		||||
		protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested)
 | 
			
		||||
		{
 | 
			
		||||
			if (GeneUtility.HasLifeForce(pawn) && GeneUtility.IsCumEater(pawn))
 | 
			
		||||
            {
 | 
			
		||||
				float num = ingested.stackCount * FERTILIN_PER_UNIT / 100;
 | 
			
		||||
				float num = ingested.stackCount * this.FertilinPerUnit / 100;
 | 
			
		||||
				GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -39,7 +39,7 @@ namespace RJW_Genes
 | 
			
		|||
                {
 | 
			
		||||
					return null;
 | 
			
		||||
                }
 | 
			
		||||
				int num = Mathf.RoundToInt(((gene_lifeforce.targetValue - gene_lifeforce.Value) * 100 + 10) / IngestionOutcomeDoer_LifeForceOffset.FERTILIN_PER_UNIT);
 | 
			
		||||
				int num = Mathf.RoundToInt(((gene_lifeforce.targetValue - gene_lifeforce.Value) * 100 + 10) / IngestionOutcomeDoer_LifeForceOffset.DEFAULT_FERTILIN_PER_UNIT);
 | 
			
		||||
				if (gatheredCum != null && num > 0)
 | 
			
		||||
				{
 | 
			
		||||
					Job job = JobMaker.MakeJob(RimWorld.JobDefOf.Ingest, gatheredCum);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue