CleverRaven / Cataclysm-DDA

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

Activities reset progress when finishing another activity. #47588

Open Saicchi opened 3 years ago

Saicchi commented 3 years ago

Describe the bug

When doing an activity ( like safe cracking ), starting another activity will reset the progress on the first activity

Steps To Reproduce

Cracking a safe with a stethoscope at 0 devices skill, 8 perception without the Safe Cracking proficiency takes exactly 10 hours and 30 minutes ( assuming character maintains a constant 100 speed using Debug Life Support and Debug HVAC ). Testing assumes you have 0 devices, 8 perception and no safe cracking proficiency.

  1. Wield/Wear a stethoscope, find/spawn a locked safe
  2. Crack the safe for 10 hours.
  3. Stop to eat/drink anything.
  4. Continue to crack the safe.
  5. Notice how the safe didn't open after 30 minutes of cracking, and the progress was reset.

For comparison do the above, stopping cracking the safe but resuming after waiting any amount of time without eating/drinking anything or starting another activity.

Expected behavior

After eating/drinking and resuming the activity, the safe cracking activity resumes from where it stopped.

Screenshots

None

Versions and configuration

Additional context

I've notice this issue happens mostly when stopping the activity.

Completing the second activity

  1. Wield a digging stick.
  2. Start digging a pit but stop before completing the activity.
  3. Milk a cow.
  4. Start digging again at the same spot, notice how progress was not reset.

Stopping the second activity

  1. Wield a digging stick.
  2. Start digging a pit but stop before completing the activity.
  3. Milk a cow but stop before completing.
  4. Start digging again at the same spot, notice how progress was reset.
PatrikLundell commented 3 years ago

I would guess the game keeps track of one unfinished activity rather than building a list of them (crafting is presumably an exceptions, as the progress is stored in the in progress item, rather than the character). That doesn't explain why eating/drinking would affect the in progress slot, though.