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 CBM install data retrieval when installing CBM on NPC #49759

Merged
merged 1 commit into from
Jul 10, 2021

Conversation

GoLoT
Copy link
Contributor

@GoLoT GoLoT commented Jul 9, 2021

Summary

Bugfixes "Fix CBM install data retrieval when installing CBM on NPC"

Purpose of change

Fixes #49752

Describe the solution

Changed code to look for the AID item in the player inventory instead of the patient (target NPC) inventory.

Describe alternatives you've considered

Using regex to parse HTML.

Testing

Before the changes:
Installing a CBM holding both the CBM and install data caused the issue and preventing consuming the AID item (it didn't cause the installation to fail though so it can be considered an exploit). Dropping the AID item to the ground prevented the issue.

After the changes:
Trying to install the CBM when holding the AID item doesn't cause issues anymore and the item is consumed.

@anothersimulacrum anothersimulacrum added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Bionics CBM (Compact Bionic Modules) labels Jul 9, 2021
@ZhilkinSerg ZhilkinSerg merged commit 9815277 into CleverRaven:master Jul 10, 2021
ZhilkinSerg added a commit to ZhilkinSerg/Cataclysm-DDA that referenced this pull request Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bionics CBM (Compact Bionic Modules) <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when installing CBM with installation data
3 participants