Grinding through the bugs

Slowly but surely making some headway through the bugs I've been able to find since returning to this project. I think at some point soon I'll break away from bug squashing and implement the FOMOD component. 

The FOMOD is required by the Nexus Mod Manager or the older Fallout Mod Manager tools to install the mod itself. Once this portion is done, I can give the mod to a few people so they can test it and report back any bugs they find. 

Tonight I did some testing around the water bottling menu options and water usage menu options in relation to hygiene and water storage. People need to use water with this mod in order to reduce their negative hygiene ratings. Both hygiene and waste monitors have five levels of effects; six if you count 0 (or completely clean and waste free).

For every 200 points worth of hygiene or waste increase, a level of penalty is incurred. Relieving oneself in public for example would increase the negative hygiene rating (given you're going outside and without any toilets nearby) but would decrease your waste level.

If your waste level is higher than 500, for example, relieving oneself outside is a nastier business and incurs a higher penalty to your hygiene than if your waste level were lower. Time to perform the deed is also depdendent upon waste level.

One bug that was squashed was when going outside instead of with a toilet, levels could reach in excess of 1000 which put the whole hygiene monitor and other scripts in an undefined state. Also, I added some extra logic in place so the script can recover if it has saved values that would put the system in one of these undefined states.

One feature I'm trying to support is the inability to clean oneself using small water sources if hard mode is selected for the mod. The mod supports three levels of difficulty (right now) when trying to reduce negative hygiene. Level one, easy mode, means that water acts normally when used *and* also reduces negative hygiene. Level two, medium mode, means that water can only be used for one or the other. Level three would mean that only large outdoor or bathtub sources of water can be used to reduce negative hygiene. 

This later mode may have to go. We'll have to see. It also conflicts with some of the bottling prefs I wanted to support. Anyhow, time to sleep.