Fixed atmic smarphone and intergrated AR unable to read stored books. #78831
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
Bugfixes "Fixed atmic smarphone and intergrated AR unable to read stored books."
Purpose of change
Fixes #78245 and fixes #78615
Describe the solution
The cause of the error was that the atomic smartphone doesnt use or store energy and that the intergrated AR uses bionic energy stored in the carrier character. This was fixed by not checking energy on parent items that don't consume energy and by also getting the energy stored in the parent item carrier character."
Testing
I tested that books stored in the smartphone can be read only when it has enough energy, I also tested that books stored in the atomic smartphone can be read. Finally I also tested that books stored in the integrated AR can also be read only when the character has enough bionic power. I also suggest testing similar magical items and the Flawless memory item from Bombastic perk, but I think these should also work because they also dont consume energy similarly to the atomic smartphone.