Comments (4)
OK there is some interesting things going on here, all resolving around Character::update_bodytemp()
First up, your light eater trait is causing you to lose temperature.
Cataclysm-DDA/src/character_body.cpp
Lines 481 to 485 in 6839cac
Removing that alone takes you from -39 displayed mouth warmth to -25. Lower metabolism resulting in lower overall body temperature makes sense in a biology/mutation context, but not "I picked light eater in chargen" sort of way.
But the big killer is that it depends on how tired you were.
Cataclysm-DDA/src/character_body.cpp
Lines 490 to 494 in 6839cac
0 sleepiness, no light eater:
900 sleepiness (exhausted), light eater:
And you won't wake up unless your torso is in the danger zone:
Cataclysm-DDA/src/character_body.cpp
Lines 808 to 812 in 6839cac
from cataclysm-dda.
I'm pretty sure this is a very old bug and has gotten me a couple of times. I've noticed it particularly hitting when I was sick with a cold, though that may just be a coincidence. There's a lot of weird hardcoded stuff with cold/flu though, so it's possible something strange is happening there.
A couple of years ago, shivering was added which was supposed to prevent you from falling asleep while cold. This never worked right, and just made it impossible to sleep at all even in safe (but chilly) temperatures for a long time. Eventually this got "fixed" such that it was once again possible to freeze to death in your sleep. Better, I guess, but only because it's the sort of thing you can usually savescum around.
There's also some code involving limb HP and cold which should probably be removed. Limb damage reduces effective temperature on that limb which used to be a stand-in for things like blood loss, but now that we actually have hypovolemia, it no longer makes sense. That code should also be excised as it can cause bizarre things like having your legs break while you're asleep because it was 40 degrees and they were at half HP when you nodded off.
Mouth coldness is a weird idea and probably shouldn't be able to cause actual HP damage to the player. Yes frostbite exists and the nose is one of the places it can happen, but a fully bundled up guy is not going to die of hypothermia because his nose got frostbitten. Maybe mouth coldness should stop dealing HP damage until a wound system is added, at which point a frostbitten nose/mouth would be more dangerous due to the infection it would lead to.
At the very least, for hypothermia (which I assume is what head/torso damage from cold is trying to model), the mouth and head could be averaged rather than tracked separately.
from cataclysm-dda.
this bug report seems relevant. might not be a direct duplicate, but it definitely has some overlap (freezing head damage to sleep death) #72798
from cataclysm-dda.
After some digging, I found this post. So having both light eater and recycler unit is why I'm freezing to death in a 6C basement. A few thoughts:
- Some extra tooltip? Might well write it myself, but I'm not that fluent in english.
- Should recycler unit affect metabolism (by extension, lower body temperature) at all? Doesn't fit the description, what with "reclaiming waste liquid and nutrients" and such.
In the meantime, I'm going to try my luck with a JSON-based dirty "fix".
from cataclysm-dda.
Related Issues (20)
- PREDATION mutations are white elephants HOT 2
- Items don't merge in AIM, different miners, different `"item_vars":{"activity_var"` HOT 2
- Aftershock exosuit modules are unusable HOT 2
- Crafting override. Renovamen Healing effect overriding any crafting process
- Accidental Mouse Double-Click Issue (During Item Consumption and Auto-Walking)
- Auto forage cattails HOT 3
- Greek/Phoenician Fire HOT 4
- Lots of debuffs. Incomplete description of the debuff
- New Item Duplication bug just dropped HOT 3
- Crash when steadying up aim. HOT 4
- Aim at enemy cause game crash HOT 2
- When I attempt to heat solids using the kitchen, the game crashes. HOT 2
- Show NPC morale (some keys in @ menu don't work for NPCs) HOT 2
- Placing glass shards is tedious and repetitive HOT 3
- Pig on pig violence. HOT 4
- Extradimensional containers count against vehicle tiles volume limit HOT 8
- Adjust Biosilicified Chitin Boots so they have 100% coverage HOT 2
- Multiple categories of use_action affect each other
- Hydrogen Peroxide should not be one of the best antiseptic in game HOT 2
- Conditional Names should be a field in the recipe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cataclysm-dda.