Add UPS conversion support to Bionic Scanner #1797
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Bugfixes "Make Bionic Scanners work with UPS Conversion Mods"
Purpose of change
If a bionic scanner has the UPS conversion mod installed, it will simply fail the moment you get close to a bionic carrying monster, as the
note_bionics
iuse has no support for theUSE_UPS
flag.Fixes #1133
Describe the solution
Adds a check to ensure that the bionic scanner is possessed by the character, and if there's not enough charge in the device (automatic since ups conversion mods remove the internal battery) it will draw from any UPS source you have instead.
Describe alternatives you've considered
Rejected on basis of reward/resource consumption mismatch.
Testing
New game, spawned in bionic scanner. Installed ups conversion mod. Spawned bio-operator, killed bio-operator. Repeated while I checked several things.
Additional context