mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
@@ -5,6 +5,7 @@
|
||||
icon = 'icons/obj/library.dmi'
|
||||
due_date = 0 // Game time in 1/10th seconds
|
||||
unique = 1 // 0 - Normal book, 1 - Should not be treated as normal book, unable to be copied, unable to be modified
|
||||
has_drm = TRUE // No reuploading. Piracy is a crime
|
||||
|
||||
|
||||
/obj/item/book/manual/engineering_construction
|
||||
|
||||
@@ -463,4 +463,5 @@
|
||||
B.author = newbook.author
|
||||
B.dat = newbook.content
|
||||
B.icon_state = "book[rand(1,16)]"
|
||||
B.has_drm = TRUE
|
||||
visible_message("[src]'s printer hums as it produces a completely bound book. How did it do that?")
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
var/carved = 0 // Has the book been hollowed out for use as a secret storage item?
|
||||
var/forbidden = 0 // Prevent ordering of this book. (0=no, 1=yes, 2=emag only)
|
||||
var/obj/item/store // What's in the book?
|
||||
/// Book DRM. If this var is TRUE, it cannot be scanned and re-uploaded
|
||||
var/has_drm = FALSE
|
||||
|
||||
/obj/item/book/attack_self(var/mob/user as mob)
|
||||
if(carved)
|
||||
|
||||
@@ -150,6 +150,11 @@ GLOBAL_LIST_INIT(library_section_names, list("Any", "Fiction", "Non-Fiction", "A
|
||||
power_change()
|
||||
return
|
||||
if(istype(I, /obj/item/book))
|
||||
// NT with those pesky DRM schemes
|
||||
var/obj/item/book/B = I
|
||||
if(B.has_drm)
|
||||
atom_say("Copyrighted material detected. Scanner is unable to copy book to memory.")
|
||||
return FALSE
|
||||
user.drop_item()
|
||||
I.forceMove(src)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user