Skip to content

Commit

Permalink
Merge pull request #78831 from SomeName42/book-reading-fix
Browse files Browse the repository at this point in the history
Fixed atmic smarphone and intergrated AR unable to read stored books.
  • Loading branch information
Maleclypse authored Dec 30, 2024
2 parents 7e2fb19 + 7116e05 commit 0f6295e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,8 @@ class read_inventory_preset: public pickup_inventory_preset

return ( loc->is_book() || loc->type->can_use( "learn_spell" ) ) &&
( p_loc.where() == item_location::type::invalid || !p_loc->is_ebook_storage() ||
p_loc->energy_remaining() >= 1_kJ );
!p_loc->uses_energy() ||
p_loc->energy_remaining( p_loc.carrier(), false ) >= 1_kJ );
}

std::string get_denial( const item_location &loc ) const override {
Expand Down

0 comments on commit 0f6295e

Please sign in to comment.