Fixes issue 1179. If gravity is off, can't escape trash chutes

Fixes issue 1219. Cloning Scanner Popping Out Prematurely
Fixes issue 1182. Using wrapping paper on a bodybag
Fixes issue 1238. Reading while blind (fixes paper, photographs, and books)
Fixes issue 1253. Braindead message when converting non braindead people (rev)
Fixes issue 1188. Head revs converting unconscious people

Added is_blind(A) as a helper proc for blindness. It returns 1 if A is a fully blinded carbon mob.

Updated the loot spawner to use a list instead of a text string.

Updated gun reloading to use text styles.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5619 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2013-01-27 13:20:59 +00:00
parent 03760c9dcf
commit 3c02e14efd
12 changed files with 92 additions and 76 deletions
+7 -1
View File
@@ -142,7 +142,11 @@
else
user << "<span class='notice'>The pages of [title] have been cut out!</span>"
return
if(src.dat)
if(is_blind(user))
return
if(dat)
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
user.visible_message("[user] opens a book titled \"[src.title]\" and begins reading intently.")
onclose(user, "book")
@@ -165,6 +169,8 @@
user << "<span class='notice'>There's already something in [title]!</span>"
return
if(istype(W, /obj/item/weapon/pen))
if(is_blind(user))
return
if(unique)
user << "These pages don't seem to take the ink well. Looks like you can't modify it."
return