mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Add placeholders titles/desc/names for books and paintings. (#35018)
* Add placeholders titles/desc/names for books and paintings. * || * || paint
This commit is contained in:
@@ -592,19 +592,19 @@
|
||||
send_prayer_to_admins(formal, raw, 'sound/effects/msn.ogg', "Centcomm", key_name(requester), get_turf(requester))
|
||||
|
||||
/obj/machinery/computer/library/checkout/proc/get_scanner_title(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cache.title
|
||||
return LS.cache.title || "Untitled Book"
|
||||
|
||||
/obj/machinery/computer/library/checkout/proc/get_scanner_author(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cache.author
|
||||
return LS.cache.author || "Anonymous"
|
||||
|
||||
/obj/machinery/computer/library/checkout/proc/get_scanner_dat(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cache.dat
|
||||
return LS.cache.dat || "..."
|
||||
|
||||
/obj/machinery/computer/library/checkout/proc/get_scanner_category(var/obj/machinery/libraryscanner/LS, var/upload_category)
|
||||
return upload_category
|
||||
return upload_category || "Fiction"
|
||||
|
||||
/obj/machinery/computer/library/checkout/proc/get_scanner_desc(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cache.book_desc
|
||||
return LS.cache.book_desc || "No description available"
|
||||
|
||||
/obj/machinery/computer/library/checkout/proc/has_cached_data()
|
||||
return scanner.cache
|
||||
|
||||
@@ -112,10 +112,10 @@
|
||||
B.open()
|
||||
|
||||
/obj/machinery/computer/library/checkout/remote_gallery/get_scanner_title(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cached_painting.painting_data.title
|
||||
return LS.cached_painting.painting_data.title || "Untitled painting"
|
||||
|
||||
/obj/machinery/computer/library/checkout/remote_gallery/get_scanner_author(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cached_painting.painting_data.author
|
||||
return LS.cached_painting.painting_data.author || "Anonymous"
|
||||
|
||||
/obj/machinery/computer/library/checkout/remote_gallery/get_scanner_dat(var/obj/machinery/libraryscanner/LS)
|
||||
return painting2json(LS.cached_painting.painting_data)
|
||||
@@ -124,7 +124,7 @@
|
||||
return "[LS.cached_painting.painting_height]x[LS.cached_painting.painting_width]"
|
||||
|
||||
/obj/machinery/computer/library/checkout/remote_gallery/get_scanner_desc(var/obj/machinery/libraryscanner/LS)
|
||||
return LS.cached_painting.painting_data.description
|
||||
return LS.cached_painting.painting_data.description || "No description available"
|
||||
|
||||
/obj/machinery/computer/library/checkout/remote_gallery/has_cached_data()
|
||||
return scanner.cached_painting
|
||||
|
||||
Reference in New Issue
Block a user