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
				
			
		| 
						 | 
				
			
			@ -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