public void StartMessing(bool voluntary = false, bool inUnderwear = true) { if (!RegressionMod.config.Messing) { return; } if (bowels < maxBowels / 10.0) { Animations.AnimatePoopAttempt(this, inUnderwear, Game1.currentLocation is FarmHouse); if (inUnderwear) { return; } Animations.HandleVillager(this, true, inUnderwear, false, true, 20, 3); } else { if (!voluntary || bowels < maxBowels * 0.5) { ChangeBowelContinence(true, 0.01f); } else { ChangeBowelContinence(false, 0.01f); } messingVoluntarily = voluntary; messingUnderwear = inUnderwear; isMessing = true; Animations.AnimateMessingStart(this, messingVoluntarily, messingUnderwear, Game1.currentLocation is FarmHouse); } }
public void EndMessing() { isMessing = false; Animations.AnimateMessingEnd(); if (sleeping || (Animations.HandleVillager(this, true, messingUnderwear, bottoms.Messiness > 0.0, false, 20, 3) || bottoms.Messiness <= 0.0 || !messingUnderwear)) { return; } HandlePoopOverflow(bottoms); }
//Ends wetting and checks to give overflow debuff public void EndWetting() { isWetting = false; Animations.AnimateWettingEnd(this); //If player is sleeping, ?villager?, didn't overflow into pants, or was on the toilet don't give overflow debuff if (sleeping || Animations.HandleVillager(this, false, wettingUnderwear, bottoms.Wetness > 0.0, false, 20, 3) || bottoms.Wetness <= 0.0 || !wettingUnderwear) { return; } HandlePeeOverflow(bottoms); }
//Starts the wetting proccess public void StartWetting(bool voluntary = false, bool inUnderwear = true) { if (!RegressionMod.config.Wetting) { return; } //If bladder is less than 10% then don't actually wet but play attempt animation if (bladder < maxBladder * 0.1f) { Animations.AnimatePeeAttempt(this, inUnderwear, Game1.currentLocation is FarmHouse); if (inUnderwear) { return; } //Figure out Animations.HandleVillager(this, false, inUnderwear, false, true, 20, 3); } else { //If the wetting is non voluntary or bladder is at more than 50% lower continence if (!voluntary || bladder < maxBladder * 0.5) { ChangeBladderContinence(true, 0.01f); } //Else raise continence else { ChangeBladderContinence(false, 0.01f); } //Used for Wet function wettingUnderwear = inUnderwear; isWetting = true; Animations.AnimateWettingStart(this, voluntary, inUnderwear, Game1.currentLocation is FarmHouse); } }