|
From: manny k. <man...@gm...> - 2016-10-27 02:12:21
|
Hi Scott, Thanks for refactoring this. Do you think you have time to look into how a bed is assigned ? There are so many cases that I have to consider in Sleep and SleepMeta. too many method calls to keep track. I believe I commented out travellers trying to find an assigned bed to sleep on. Somehow, folks already having assigned beds are still not getting his/her bed when there are no travelers from another settlement. Manny On Wed, Oct 26, 2016 at 3:31 PM, Mars Simulation Project SVN repository < no...@co...> wrote: > Refactored Living Accommodations building function generateWaste method to > change the rate of grey water and black water production. Grey water is > produced from both wash water and waste water use, while black water is > produced from only waste water use. I think the production rate of both is > more accurate to average daily water use per person, but we may want to > move all of this to tasks rather than this building function at some point. > > Added isWashWaterRationing method to Settlement class. This checks if > inhabitants are rationing wash water usage due to low water inventory. If > water stored at a settlement is less than 10% of their yearly drinking > water needs, the settlement requires wash water rationing, in which > inhabitants will only use 10% of normal wash water each Sol. (Perhaps we > should make this affect morale?) > > Adding getToiletryUsageDemand method to GoodsManager class for determining > demand for toilet paper. We can also add other toiletry resources later > when they're added to the sim, such as soap, shampoo, deodorant, > toothpaste, etc. This may give value to other goods in the paper > manufacturing tree. > > Refactored Manufacture building function code to remove static references > to BuildingConfig, BuildingManager, MarsClock, GoodsManager, and > UnitManager. This can cause problems when loading a sim if the static > references are not initialized, but also for general decoupling purposes. > Instead they get the references to these class instances from the > simulation instance as needed. > > By scud1 on 10/26/2016 22:30 > *View Changes* <https://sourceforge.net/p/mars-sim/code/3763/> > ------------------------------ > > Sent from sourceforge.net because you indicated interest in > https://sourceforge.net/p/mars-sim/code/ > > To unsubscribe from further messages, please visit > https://sourceforge.net/auth/subscriptions/ > |