예제 #1
0
파일: Body.cs 프로젝트: SabrinM/Regression
        //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);
            }
        }