-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 in-progress crafting of liquid items to have liquid behaviour #36011
Conversation
You need to astyle your changes (run |
|
||
// in craft of liquid item should have liquid attribute | ||
if( find_type(making->result())->phase == LIQUID ) { | ||
current_phase = static_cast<phase_id>( 2 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current_phase = static_cast<phase_id>( 2 ); | |
current_phase = LIQUID; |
I'm not sure if this does what we want, the recipe acts as a liquid even though any liquid recipes are going to include a container. |
I think the real issue here is mislabelling, an in-progress "clean water" craft is going to be called "in progress clean water", but in reality it's "a pot of in-progress clean water". Basically the behavior is fine, but the description could be clearer about what's happening. |
But the "in progress clean water" doesn't have the pot included in the item itself, so you can just store it in a cupboard or something while taking the pot with you. |
Container should be part of incomplete craft and not be available for other activities. |
Summary
SUMMARY: Bugfixes "Fix in-progress crafting of liquid items to have liquid behaviour"
Purpose of change
Fixes #35863 - if you do not finish crafting liquid, you can drop it and pick it up from the ground.
Describe the solution
Describe alternatives you've considered
If modifying the phase of the recipe item is allowed (it's currently a const pointer), then the added code in pick_up_one is not necessary.
Testing
In-game testing through the debug menu.