Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basecamps: fix NPCs disappearing when crafting in expansions #34078

Merged

Conversation

mlangsdorf
Copy link
Contributor

Summary

SUMMARY: Bugfixes "basecamps: fix NPCs disappearing when crafting in expansions"

Purpose of change

Fixes #30850

NPCs would disappear into the ether when crafting in an expansion if the basecamp had a copy of the same recipe. The basecamp craft function would dispatch the NPC, but with the wrong companion mission information, making it impossible to recall them.

Describe the solution

Gate the basecamp start_crafting() call behind a check to see if miss_dir is the base_dir for the camp.

Additional context

Tested by having two NPCs craft tinder at the same time, one at the basecamp and one at the kitchen expansion, and being able to recall them both and send them back out to craft more tinder repeatedly.

NPCs would disappear into the ether when crafting in an expansion
if the basecamp had a copy of the same recipe.  The basecamp
craft function would dispatch the NPC, but with the wrong companion
mission information, making it impossible to recall them.

Make the basecamp craft mission start check for the basecamp
direction before running.

Notes: this will conflict with Qrox's basecamp refactor from CleverRaven#34058
but the conflict resolution should be obvious.
@mlangsdorf mlangsdorf added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Player Faction Base / Camp All about the player faction base/camp/site labels Sep 17, 2019
@ZhilkinSerg ZhilkinSerg merged commit 5ebc519 into CleverRaven:master Sep 17, 2019
@mlangsdorf mlangsdorf deleted the basecamp_expansion_craft_fix branch April 13, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Player Faction Base / Camp All about the player faction base/camp/site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sending NPC to "Craft Tinder" from bulletin board deletes NPC?
2 participants