Skip to content

Commit

Permalink
bugfix: someone forgot to add ability to read books on tables. (#4142)
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelPoltavets authored Dec 28, 2023
1 parent 68ecf03 commit 48311b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/modules/library/lib_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@
/// Book DRM. If this var is TRUE, it cannot be scanned and re-uploaded
var/has_drm = FALSE

/obj/item/book/examine(mob/user)
. = ..()
if(user.is_literate())
if(in_range(user, src) || istype(user, /mob/dead/observer))
attack_self(user)
else
. += "<span class='notice'>You have to go closer if you want to read it.</span>"
else
. += "<span class='notice'>You don't know how to read.</span>"

/obj/item/book/attack_self(var/mob/user as mob)
if(carved)
if(store)
Expand Down

0 comments on commit 48311b9

Please sign in to comment.