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

Crafting anesthetic does not count an empty anesthesia kit as a valid container #30113

Closed
Naive8A opened this issue Apr 30, 2019 · 8 comments · Fixed by #30131
Closed

Crafting anesthetic does not count an empty anesthesia kit as a valid container #30113

Naive8A opened this issue Apr 30, 2019 · 8 comments · Fixed by #30131
Labels
Crafting / Construction / Recipes Includes: Uncrafting / Disassembling stale Closed for lack of activity, but still valid.

Comments

@Naive8A
Copy link

Naive8A commented Apr 30, 2019

Description
If you try to make anesthetic AND you have a large enough nearby container, you can craft it normally. When the recipe is finished, you can choose to put the anesthetic in an empty anesthesia kit (or other container) as expected.
However, if you have no suitable container, even if you have an empty anesthesia kit you cannot make anesthetic. You get the message "You don't have anything to store anesthetic in!" and cannot proceed with the recipe.
This is NOT related to the tool requirement of the recipe. Having only a glass bowl will not allow you to proceed with the recipe despite showing the tool requirement as filled.

To Reproduce
Steps to reproduce the behavior:

  1. Wish for an anesthesia kit (NOT an anesthetic kit!), a glass bowl, and 5 heroin.
  2. Unload the anesthesia kit. It should read (0/3).
  3. Wish for 2700 ether (this must be done just before attempting the recipe or it spills).
  4. Open the crafting menu and try to craft anesthetic. If you do not have a large, empty container nearby, you will not be able to craft it.

Expected behavior
Crafting anesthetic should count the anesthesia kit as a valid place to store anesthetic.
Otherwise, instead of only needing one 3L glass jar for the anesthesia kit, you need a second one (or other suitably large liquid container) in order to craft the anesthetic even though you may never put anesthetic in the second container.

Versions and configuration(please complete the following information):

  • OS: Windows 10
  • Game Version: 0.D-2396-g1b60b95
  • Graphics version: Tiles
  • Mods loaded: DDA
@Naive8A Naive8A changed the title Crafting Crafting anesthetic does not count an empty anesthetic kit as a valid container Apr 30, 2019
@Naive8A Naive8A changed the title Crafting anesthetic does not count an empty anesthetic kit as a valid container Crafting anesthetic does not count an empty anesthesia kit as a valid container Apr 30, 2019
@Night-Pryanik Night-Pryanik added the Crafting / Construction / Recipes Includes: Uncrafting / Disassembling label Apr 30, 2019
@Fris0uman
Copy link
Contributor

It's probably because the kit is not a container. Will look into it in a few hours

@Fris0uman
Copy link
Contributor

So I see two possible way to fix that :

  • The 3l jar is a magazine for the kit. You pour the anesthesia in the jar and load the jar in the kit.
  • We get rid of the kit entierly and just use 1L of anesthesia per surgery

@Naive8A
Copy link
Author

Naive8A commented Apr 30, 2019

I'm a fan of using 3L jars as magazines, bu since anesthesia kits have no other use, if changing autodocs to accept straight anesthetic is a simple change I think it makes sense to say that the autodocs have anesthesia kits built in and just need the materials.

@kevingranade
Copy link
Member

Summary of discussion on discord:
AFAICT the kit just needs the appropriate container metadata to be recognized by the crafting code, just a guess, I think this will do it:

"container_data": { "contains": 3, "watertight": true },
"qualities": [ "CONTAIN", 1 ]

@kevingranade
Copy link
Member

The approach I suggested triggered a seemingly endless series of bugs, so we've reverted it and need a new solution now.

@ifreund
Copy link
Contributor

ifreund commented May 20, 2019

The solution I would like to see for this is to just add a special case to the liquid handling code to allow liquids to be loaded into tools, instead of forcing them to be poured on the ground. Then add an equivalent special case to player::check_eligible_containers_for_crafting() that allows crafting if the resulting liquid could be loaded into an available tool.

@stale
Copy link

stale bot commented Jul 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Jul 31, 2019
@stale
Copy link

stale bot commented Aug 30, 2019

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it

@stale stale bot closed this as completed Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crafting / Construction / Recipes Includes: Uncrafting / Disassembling stale Closed for lack of activity, but still valid.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants