mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Locked absorbers can't get dirty or cause infections
This commit is contained in:
		
							parent
							
								
									e7c395636b
								
							
						
					
					
						commit
						3d5e1cae15
					
				
					 4 changed files with 6 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -1199,7 +1199,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
                if (!absorber.dirty)
 | 
					                if (!absorber.dirty)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    absorber.absorbedfluids += amount;
 | 
					                    absorber.absorbedfluids += amount;
 | 
				
			||||||
                    if (absorber.absorbedfluids > absorbable)
 | 
					                    if (absorber.absorbedfluids > absorbable && !parent.pawn.apparel.IsLocked(absorber))
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        absorber.def = absorber.DirtyDef;
 | 
					                        absorber.def = absorber.DirtyDef;
 | 
				
			||||||
                        //absorber.fluidColor = GetCumMixtureColor;
 | 
					                        //absorber.fluidColor = GetCumMixtureColor;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -256,7 +256,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public override void DirtyEffect()
 | 
					        public override void DirtyEffect()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (wearhours > MinHrstoDirtyEffect && Rand.Chance(0.01f))
 | 
					            if (wearhours > MinHrstoDirtyEffect && Rand.Chance(0.01f) && !Wearer.apparel.IsLocked(this))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                Wearer.health.AddHediff(HediffDefOf.WoundInfection, Genital_Helper.get_genitalsBPR(Wearer));
 | 
					                Wearer.health.AddHediff(HediffDefOf.WoundInfection, Genital_Helper.get_genitalsBPR(Wearer));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,7 @@
 | 
				
			||||||
 | 
					Version 1.0.6.2
 | 
				
			||||||
 | 
					 - Teratophiles get the "I came inside" mood buff for ugly partners instead of pretty ones.
 | 
				
			||||||
 | 
					 - Locked absorbers (e.g. that guests have) won't get dirty or cause infections.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.0.6.1
 | 
					Version 1.0.6.1
 | 
				
			||||||
 - Requires RJW 4.9.6 or later
 | 
					 - Requires RJW 4.9.6 or later
 | 
				
			||||||
 - Fix errors when a hybrid refers to an invalid race.
 | 
					 - Fix errors when a hybrid refers to an invalid race.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue