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 frozen acid drops #33350

Merged
merged 4 commits into from
Aug 21, 2019
Merged

Conversation

misterprimus
Copy link
Contributor

@misterprimus misterprimus commented Aug 19, 2019

Summary

SUMMARY: Bugfixes "Fixed acid recovery from car battery"

Purpose of change

Make it possible to recover acid from car battery.

Describe the solution

Recovery of battery acid from car battery only works when the acid is thawed, as it is liquid and you get asked the option of what to do with that liquid when it comes into your possession. This check is not performed when the acid is frozen, which is fine, except acid has a drop action which is triggered, destroying the item and creating puddles of damaging acid fields.

Additional context

The code is very confusing, but it looks like this works at least with preliminary testing. Note there is still the bug of frozen acid on the ground NOT thawing and converting to an acid field due to ambient heat - this is only checked when the player tries to pick it up. But I'm pretty sure my changes didn't cause that and it can be fixed in a different PR.

@misterprimus
Copy link
Contributor Author

I just tested it again and it looks like it's still possible to get a crash if you drink the acid, take damage, and interrupt the deconstruction. But at least the handling of the acid as a liquid is fixed.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Items / Item Actions / Item Qualities Items and how they work and interact Vehicles Vehicles, parts, mechanics & interactions labels Aug 19, 2019
@misterprimus
Copy link
Contributor Author

Not sure what that error means:
image

@Petethegoat
Copy link
Contributor

Not your problem. Just need someone to restart it and try again.

@kevingranade kevingranade merged commit 84ad947 into CleverRaven:master Aug 21, 2019
misterprimus added a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 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 Items / Item Actions / Item Qualities Items and how they work and interact [JSON] Changes (can be) made in JSON Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants