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

NPC Construction Fix #35604

Merged
merged 7 commits into from Nov 20, 2019
Merged

NPC Construction Fix #35604

merged 7 commits into from Nov 20, 2019

Conversation

ghost
Copy link

@ghost ghost commented Nov 19, 2019

Summary

SUMMARY: Bugfixes "NPC Construction Fix"

Purpose of change

Fixes #35581 ( maybe )

Describe the solution

I introduced a bug where if the NPC needs to fetch components, the get_zone_for_act() function didnt cover that activity type, and returned a null zone type id, which returned from the requirements check early as it didnt think the components were inside a zone.

The solution is to check that the components are in ANY zone, and if so return the zone type that its already in.

Describe alternatives you've considered

N/A

Testing

Tested on my own save that had a similar bug, where they wouldtn finish a log wall, and now they can, but will ask the linked issue OP if it now resolves it.

Additional context

N/A

@curstwist curstwist added <Bugfix> This is a fix for a bug (or closes open issue) NPC / Factions NPCs, AI, Speech, Factions, Ownership Crafting / Construction / Recipes Includes: Uncrafting / Disassembling labels Nov 19, 2019
@ghost
Copy link
Author

ghost commented Nov 19, 2019

with a fine assist from @ipcyborg the fix is gonna be improved in a minute.

@ghost
Copy link
Author

ghost commented Nov 20, 2019

Sorry for the added commits, done now.

@ZhilkinSerg ZhilkinSerg merged commit bfd6f9c into CleverRaven:master Nov 20, 2019
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) Crafting / Construction / Recipes Includes: Uncrafting / Disassembling NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Npc's wont "finish" construction in outpost
2 participants