CleverRaven / Cataclysm-DDA

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

"NO_BREATHE" monster flag does not apply to effects from regular smoke #72439

Closed TheSaddestGoomba closed 8 months ago

TheSaddestGoomba commented 8 months ago

Describe the bug

The "NO_BREATHE" flag makes creatures immune to the effects of tear gas, sleep gas and others, but not the effects 'smoke_inhalation' and 'smoke_irritation'. Even the Talon UGVs are affected.

Attach save file

N/A

Steps to reproduce

Make some smoke, debug spawn a monster with "NO_BREATHE" into the cloud.

Expected behavior

That monsters with the flag would be unaffected similarly to other gas effects.

Screenshots

No response

Versions and configuration

Additional context

No response

RenechCDDA commented 8 months ago

Hmmm image

RenechCDDA commented 8 months ago

Looks like a simple fix, the smoke fields simply needs to have has_fume set to true. This makes NO_BREATHE monsters immune to it.