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

Fix failed crafts with 0 volume #35554

Merged

Conversation

LeeMartin77
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Remove failed craft when losing last component"

Purpose of change

fixes #34072 - the AIM was throwing up as the crafts with no components in them had 0 volume.

Describe the solution

Currently, in progress crafts that lose their last component still exist, but with a volume of 0 as there is nothing in them. I've added this fix where if a player/npc bungles a craft and loses the last component of it (and the craft had components to start with), the craft item is removed from the game. Basic rational being how can you have an in-progress craft if you've destroyed all the parts of that craft.

Testing

Tested that a normal character could still successfully make crude wooden arrows (an item with only one component), then tested with a character that would regularly fail the check that they would have the in progress craft removed when they bungled it.

Currently, in progress crafts that lose their last component still
exist, but with a volume of 0 as there is nothing in them. I've
added this fix where if a player/npc bungles a craft and loses
the last component of it (and the craft had components to start
with), the craft item is removed from the game.
fixes CleverRaven#34072
@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` Crafting / Construction / Recipes Includes: Uncrafting / Disassembling labels Nov 16, 2019
@ZhilkinSerg ZhilkinSerg merged commit 4f81055 into CleverRaven:master Nov 16, 2019
@LeeMartin77 LeeMartin77 deleted the prevent_empty_inprogress_crafts branch November 16, 2019 16:00
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` Crafting / Construction / Recipes Includes: Uncrafting / Disassembling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty in-progress items cause error messages when moving them through AIM
3 participants