mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
@@ -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))
|
||||
|
||||
@@ -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]" : ""]")
|
||||
|
||||
Reference in New Issue
Block a user