示例#1
0
        public void HandleMorning()
        {
            //Refresh food and water in easymode
            if (RegressionMod.config.Easymode)
            {
                food  = maxFood;
                water = maxWater;
            }

            //If no wetting or messing don't wet pants at night
            if (!RegressionMod.config.Wetting && !RegressionMod.config.Messing)
            {
                peedToiletLastNight   = 0;
                poopedToiletLastNight = 0;
                sleeping = false;
                bottoms  = new Underwear((int)UnderwearType.Pants);
            }
            else
            {
                if (!RegressionMod.config.Easymode)
                {
                    //Lower stamina regen if pants are soiled
                    if (bottoms.Messiness > 0.0 || bottoms.Wetness > Body.glassOfWater)
                    {
                        beddingDryTime        = Game1.timeOfDay + 1500;
                        Game1.player.Stamina -= 100f;
                    }
                    else if (bottoms.Wetness > 0.0)
                    {
                        beddingDryTime        = Game1.timeOfDay + 900;
                        Game1.player.Stamina -= 50f;
                    }
                    else
                    {
                        beddingDryTime = 0;
                    }
                }

                Animations.AnimateMorning(this);

                peedToiletLastNight   = 0;
                poopedToiletLastNight = 0;

                sleeping = false;
                bottoms  = new Underwear((int)UnderwearType.Pants);
            }
        }