Locked absorbers can't get dirty or cause infections

This commit is contained in:
lutepickle 2022-05-03 22:23:47 -07:00
parent e7c395636b
commit 3d5e1cae15
4 changed files with 6 additions and 2 deletions

Binary file not shown.

View file

@ -1199,7 +1199,7 @@ namespace RJW_Menstruation
if (!absorber.dirty)
{
absorber.absorbedfluids += amount;
if (absorber.absorbedfluids > absorbable)
if (absorber.absorbedfluids > absorbable && !parent.pawn.apparel.IsLocked(absorber))
{
absorber.def = absorber.DirtyDef;
//absorber.fluidColor = GetCumMixtureColor;

View file

@ -256,7 +256,7 @@ namespace RJW_Menstruation
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));
}

View file

@ -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
- Requires RJW 4.9.6 or later
- Fix errors when a hybrid refers to an invalid race.