david-j-lee/oni-calc

Dupe polluted water output calculation is wrong

Closed this issue · 3 comments

screenshot from 2018-07-28 13-25-31

See the screenshot. Not sure what's going on here but 12 dupes producing 11,500g of polluted water (ie a lavatory) each should be 138,000 in output. I have no idea where the 230 number is coming from.

@brandonegbert So the input is for per cycle whereas the left panel is per second. In order to convert per cycle to per second, I divide the output by 600 (600 seconds in a cycle). So 138,000 grams per cycle would result in 230 grams per second.

The water is off then. It's coming out to 5,000*12=60,000.

Actually this only seems to happen with negative numbers. I'm trying to represent that each dupe will use a lavatory once a cycle which uses 5,000g of water and produces 11,500g of polluted water. What would be the correct way to represent that?

@brandonegbert Nice catch, the negative numbers did not perform the conversion to per second correctly. I have updated GitHub with the 1ca68e2 commit and published to the live site. Thank you.