CleverRaven / Cataclysm-DDA

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

Withdrawals make auto-move unusable #75488

Open ErgosphericMeasure opened 1 month ago

ErgosphericMeasure commented 1 month ago

Describe the bug

When using auto-move while having withdrawals (from drugs, alcohol, etc.) and not having the "withdrawals" distraction disabled, the "You start having withdrawals! Cancel auto move?" popup appears after every step, rendering auto-move near-entirely pointless.

Attach save file

New Britain-trimmed.tar.gz

Steps to reproduce

  1. Make a character
  2. Take a bunch of meth
  3. Wait for withdrawals
  4. Try to auto-travel anywhere

Expected behavior

Withdrawal warning should probably appear only once during any given travel session.

Screenshots

Screenshot from 2024-08-06 14-06-12

Versions and configuration

Additional context

No response

Consoleable commented 1 month ago

Theres no easy way to fix this until addiction is overhauled or automove is fixed. Afaict breaking automove is actually a problem with automove itself, and how it handles distractions, as safe mode distractions can break it as well. Withdrawals are triggered on a 6 hour timer(which might be longer or shorter based on traits), try waiting after the withdrawal notification is triggered for a minute and then continuing automove. Alternatively, satisfying your addiction with some more drugs should help. If you just don't care about your characters withdrawals then yeah, turning off the distraction makes sense. The withdrawal distraction is mainly for preventing people from getting locked into trying to craft something until they pass-out.

ErgosphericMeasure commented 1 month ago

Yeah, I just disabled the distraction myself to deal with it, but figured I should document the interaction, as there's no way the popup firing every step is the best way for those features to interact.