Fixes illiterate & blind mobs being able to read books (#41400)

cl ShizCalev
fix: Fixed inconsistency where illiterate and blind mobs were able to read some books/manuals, but not others.
fix: Fixed mobs being granted mime speak even if they failed to finish reading the Guide to Advanced Mimery Volumes 1/2.
/cl

Step towards resolving #41396
This commit is contained in:
ShizCalev
2018-11-12 21:10:21 +13:00
committed by oranges
parent c7a816a25e
commit dc019b09ba
12 changed files with 40 additions and 28 deletions
+2 -6
View File
@@ -21,12 +21,8 @@
var/currentSection = PRE_TITLE
/obj/item/book/codex_gigas/attack_self(mob/user)
if(is_blind(user))
to_chat(user, "<span class='warning'>As you are trying to read, you suddenly feel very stupid.</span>")
return
if(!user.is_literate())
to_chat(user, "<span class='notice'>You skim through the book but can't comprehend any of it.</span>")
return
if(!user.can_read(src))
return FALSE
if(inUse)
to_chat(user, "<span class='notice'>Someone else is reading it.</span>")
if(ishuman(user))
+2 -5
View File
@@ -197,12 +197,9 @@
var/title //The real name of the book.
var/window_size = null // Specific window size for the book, i.e: "1920x1080", Size x Width
/obj/item/book/attack_self(mob/user)
if(is_blind(user))
to_chat(user, "<span class='warning'>As you are trying to read, you suddenly feel very stupid!</span>")
return
if(ismonkey(user))
to_chat(user, "<span class='notice'>You skim through the book but can't comprehend any of it.</span>")
if(!user.can_read(src))
return
if(dat)
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book[window_size != null ? ";size=[window_size]" : ""]")