schoos76 / MizuMod

RimWorld MOD
The Unlicense
2 stars 3 forks source link

Calculations for water duration maybe broken #16

Closed schoos76 closed 6 years ago

schoos76 commented 6 years ago

From Steam: If I go to the caravan screen and select 4 people but no items the water report on the upper right says 1. I think perhaps it has something to do with the current hydration levels of the selected people (or perhaps what they may already be carrying?) because I've seen that as low as .3.

If I add water, at 21 bottles the meter will show 3.1. Now if I add even more, up to 100 in this test, the meter do not increase. It stays fixed at 3.1.

Seems odd.

schoos76 commented 6 years ago

Issue can be confirmed, have a test setup here, where things are rather strange: 1 colonist (with 1 water), 4 muffalos in caravan. I add 4 water, approx num of days: 0.4 (below 4: 0 days). Adding water one bye one results in a pattern: 5th water gives 0.1 days more (0.5 days in total for water number 5), then need to add 4 to supply all muffalos with water for an extra part of a day (0.4 days more), then the next one is for the colonist). However, when we reach 2.3 days, it doesn't increase any more.

schoos76 commented 6 years ago

Issue seems to be related to stack size limit: whenever there's more than 25 of water from one of the item stacks in the caravan forming dialog, the calculation gets wrong.