LIBRARY OVERHAUL

This commit is contained in:
Rob Nelson
2015-02-24 18:54:56 -08:00
parent 681d9a92ea
commit 903ac329be
11 changed files with 652 additions and 769 deletions

View File

@@ -177,7 +177,20 @@
var/unique = 0 // 0 - Normal book, 1 - Should not be treated as normal book, unable to be copied, unable to be modified
var/title // The real name of the book.
var/carved = 0 // Has the book been hollowed out for use as a secret storage item?
var/obj/item/store //What's in the book?
var/wiki_page // Title of the book's wiki page.
var/forbidden = 0 // Prevent ordering of this book. (0=no, 1=yes, 2=emag only)
var/obj/item/store // What's in the book?
/obj/item/weapon/book/New()
..()
if(wiki_page)
dat = {"
<html>
<body>
<iframe width='100%' height='100%' src="http://ss13.nexisonline.net/w/index.php?title=[wiki_page]&printable=yes"></iframe>
</body>
</html>
"}
/obj/item/weapon/book/cultify()
new /obj/item/weapon/tome(loc)
@@ -296,7 +309,7 @@
throw_range = 5
w_class = 1.0
flags = FPRINT
var/obj/machinery/librarycomp/computer // Associated computer - Modes 1 to 3 use this
var/obj/machinery/computer/library/checkout/computer // Associated computer - Modes 1 to 3 use this
var/obj/item/weapon/book/book // Currently scanned book
var/mode = 0 // 0 - Scan only, 1 - Scan and Set Buffer, 2 - Scan and Attempt to Check In, 3 - Scan and Attempt to Add to Inventory