-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bread is unreasonably dense; pumpkin muffins are denser than gold, can eat over 50kg in one sitting #61312
Comments
So I was checking to see if I could fix this just by editing the JSON, and while that can help a bit there's still some oddities in math that make this turn out silly. A few things are happening:
The game does several things to the Volume.
Despite this fairly reasonable volume, I can still eat 53 muffins * 313 mL = 16.5 Liters of muffins. Something must be wrong with the stomach code. Turning on debug mode, I can see that the effective volume that's getting logged is only 28 mL. So there must be a bug. Ok so next I checked the JSON vs in-game definitions. Even if I set the JSON to |
It's a unit conversion somewhere. Consuming my 20,000 mL muffin with debug mode on shows an effective volume of 313 mL, which is exactly what we'd expect to see from the 200 mL muffin calculation I mentioned above. So something is chopping off two orders of magnitude, and the displayed volume for the item (in inventory) is also nonsense. |
Derp. It's the With those changes, I can only eat 4 muffins before I'm full. So. Sorry for the long-winded investigation that can be summarized as: "yes, we can fix this by updating the JSON values". |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
I do appreciate the fact that two years on from this issue being posted we've seen some moves on that front. Pumpkin muffins are no longer 20g/ml... they're now 30g/ml... |
I love game development. e: fun fact, that makes pumpkin muffins the densest material on earth. As far as I know, the only materials in the universe denser than that is stuff like the hadron soup that composes neutron stars |
Describe the bug
Many bread items have completely wacky density. 100 units of standard "bread" weigh 6kg (6000g) and has a volume of 1.79L (1790cm3), which gives it a density of 3.4g/cc. This is denser than most rocks, and about 15 times higher than the actual density of bread at ~0.2g/cc. Some, but not all, bread-related products have similarly weird densities. A few examples:
While all of these values are silly and could use adjusting on that basis alone, what actually causes problems is the effect density has on eating. Because of the way satiety is calculated (#36977, #40402), calorie density is largely a function of physical density.
The survivor is able to eat about 1800 pumpkin muffins in one sitting. That's over 50kg, and more than seventy thousand kcal.
That's obviously an extreme outlier, but it has absurd effects much further down the scale. Filling up on hardtack gives you about 4 times more calories than eating a similar amount of pure lard.
Steps to reproduce
Expected behavior
Bread is less fattening than literally eating pure fat.
Screenshots
A stomach full of pumpkin muffins
A stomach full of hardtack.
A stomach full of bread
A stomach full of lard.
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions]
]
Additional context
No response
The text was updated successfully, but these errors were encountered: