mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Made evergrowth Genitalia tick configurable
This commit is contained in:
		
							parent
							
								
									7c22dcd348
								
							
						
					
					
						commit
						57bb1950e4
					
				
					 4 changed files with 12 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -8,6 +8,7 @@
 | 
			
		|||
- Simple Gene that removes Sex need (called asexual, `rjw_genes_no_sex_need`)
 | 
			
		||||
- New Gene that grows Penisses on Oral sex. Configurable in XML. 
 | 
			
		||||
- New Gene Lifeforce Empath: Gain Lifeforce for sexually satisfied pawns, loose for frustrated pawns.
 | 
			
		||||
- More genes are configurable with XML, e.g. tick speed, distances or multipliers. I am getting the hang of it. 
 | 
			
		||||
 | 
			
		||||
**Fixes:**
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -125,6 +125,12 @@
 | 
			
		|||
      <li>PenisSize</li>
 | 
			
		||||
      <li>VaginaSize</li>
 | 
			
		||||
    </exclusionTags>
 | 
			
		||||
    <modExtensions>
 | 
			
		||||
        	<li Class="RJW_Genes.TickIntervalExtension">
 | 
			
		||||
				<!-- One day has 60k ticks-->
 | 
			
		||||
				<tickInterval>60000</tickInterval>
 | 
			
		||||
			</li>
 | 
			
		||||
		</modExtensions>
 | 
			
		||||
  </GeneDef> 
 | 
			
		||||
  
 | 
			
		||||
</Defs>
 | 
			
		||||
| 
						 | 
				
			
			@ -265,8 +265,8 @@
 | 
			
		|||
		<prerequisite>rjw_genes_lifeforce</prerequisite>
 | 
			
		||||
		<displayOrderInCategory>3</displayOrderInCategory>
 | 
			
		||||
		<displayCategory>rjw_genes_fertilin</displayCategory>
 | 
			
		||||
		<biostatCpx>1</biostatCpx>
 | 
			
		||||
		<biostatMet>-1</biostatMet>
 | 
			
		||||
		<biostatCpx>3</biostatCpx>
 | 
			
		||||
		<biostatMet>-2</biostatMet>
 | 
			
		||||
 | 
			
		||||
		<modExtensions>
 | 
			
		||||
			<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,13 +16,14 @@ namespace RJW_Genes
 | 
			
		|||
        public const int RESIZING_AGE = 20;
 | 
			
		||||
 | 
			
		||||
        //public const int GROWTH_INTERVAL = 1000; // Test value for Quick Trials
 | 
			
		||||
        public const int GROWTH_INTERVAL = 60000; // 60k == 1 day
 | 
			
		||||
        public const int GROWTH_INTERVAL_FALLBACK = 60000; // 60k == 1 day
 | 
			
		||||
 | 
			
		||||
        public override void Tick()
 | 
			
		||||
        {
 | 
			
		||||
            base.Tick();
 | 
			
		||||
 | 
			
		||||
            if (pawn.IsHashIntervalTick(GROWTH_INTERVAL) 
 | 
			
		||||
            int interval = ModExtensionHelper.GetTickIntervalFromModExtension(GeneDefOf.rjw_genes_evergrowth, GROWTH_INTERVAL_FALLBACK);
 | 
			
		||||
            if (pawn.IsHashIntervalTick(interval) 
 | 
			
		||||
                && this.pawn.Map != null 
 | 
			
		||||
                && pawn.ageTracker.AgeBiologicalYears >= RESIZING_AGE)
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue