CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.66k stars 4.18k forks source link

Oven Smoke Perma Depletes Stamina, Can't Catch Breath #48725

Open SibilantScream opened 3 years ago

SibilantScream commented 3 years ago

image I crafted clean water & the smoke just got half of my HP & permanently zeroed my breath. I tried waiting to catch breath so many times the sun went down.

Platform : Windows_x64 Graphics : Tiles Build number : #11581 Build version: 0.E-10395-g4525b4f Major version: 0.E

danielkwinsor commented 3 years ago

I have this issue with any type of smoke.

actual-nh commented 3 years ago

I'm assuming the character(s) don't have asthma, which would make that rather more realistic?

SibilantScream commented 3 years ago

No asthma.

RoyBerube commented 3 years ago

Pus filled torso might have something to do with it.

actual-nh commented 3 years ago

Pus filled torso might have something to do with it.

@danielkwinsor - screenshot when you encounter this again? (Infection prevents stamina recovery after some point.)

SibilantScream commented 3 years ago

did a fresh new run w\ same start. Same thing occured, even before bad infection stat: image

actual-nh commented 3 years ago

@Venera3: Is infection supposed to have this effect at that stage?

Venera3 commented 3 years ago

Your stamina still regens up till Pus-filled (at Infected walking is still stamina-positive, at Bady Infected it becomes stamina-neutral and regen zeroes out at Pus-Filled). I'll take a look at the smoke effect to see if there's an unintended interaction.

Venera3 commented 3 years ago

Yeah, it's an unhappy interaction. Coughing is hardcoded, with a non-harmful variant that only costs moves and a harmful one that reduces your stamina by 5% of your max (for most characters 50/10,000) and damages you by the difference if you'd go negative -- character.cpp/9038, in case somebody more fluent wants to double check. The smoke effect causes harmful coughing every 10th second effectively, depleting your stamina pretty quickly and the infection prevents you from regenerating at high intensities.

actual-nh commented 3 years ago

Yeah, it's an unhappy interaction. Coughing is hardcoded, with a non-harmful variant that only costs moves and a harmful one that reduces your stamina by 5% of your max (for most characters 50/10,000) and damages you by the difference if you'd go negative -- character.cpp/9038, in case somebody more fluent wants to double check.

Eventually, it may be a good idea to replace that with intermittent "winded" plus the sound production #48671 should enable.

EDIT: Oh. And I have to wonder if it would be better to have some of infection's effects on stamina "diverted" to increasing base activity level - as in, simulate body resources going into things like a fever via weariness and other effects. (Antipyretics could then perhaps help with this - although they should really also make the infection potentially advance faster! There are evolutionary/functional reasons why we get fevers, after all...)

SibilantScream commented 3 years ago

Not sure about exertion advancing infection since you need to find antibiotics fast but I agree on over-exertion leading to exhaustion & starvation\dehyderation penalties to simulate losing energy. Losing HP directly to smoke is just not inelegant & unrealistic, having even a hidden soffocation value that's shared between being submerged & smoked among other situations is more intuitive.

danielkwinsor commented 3 years ago
Screenshot 2021-05-08 182633