From 8649fe918a9e82716a596357e00635d64a88959d Mon Sep 17 00:00:00 2001
From: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
Date: Sun, 26 May 2024 10:25:36 +0100
Subject: [PATCH] Delicious knowledge (#16006)
* Delicious knowledge
Added books to the option of trash eater edible items.
* Stopped from eating carved books
---
code/_helpers/global_lists_vr.dm | 1 +
code/modules/vore/eating/living_vr.dm | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/code/_helpers/global_lists_vr.dm b/code/_helpers/global_lists_vr.dm
index b025f45980d..45ddb1dc700 100644
--- a/code/_helpers/global_lists_vr.dm
+++ b/code/_helpers/global_lists_vr.dm
@@ -209,6 +209,7 @@ var/global/list/edible_trash = list(/obj/item/broken_device,
/obj/item/trash,
/obj/item/weapon/digestion_remains,
/obj/item/weapon/bananapeel,
+ /obj/item/weapon/book,
/obj/item/weapon/bone,
/obj/item/weapon/broken_bottle,
/obj/item/weapon/card/emag_broken,
diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm
index 93d5bf55edf..f4bf8733160 100644
--- a/code/modules/vore/eating/living_vr.dm
+++ b/code/modules/vore/eating/living_vr.dm
@@ -782,6 +782,12 @@
to_chat(src, "\The [pocketpal] doesn't allow you to eat it.")
return
+ if(istype(I, /obj/item/weapon/book))
+ var/obj/item/weapon/book/book = I
+ if(book.carved)
+ to_chat(src, "\The [book] is not worth eating without the filling.")
+ return
+
if(is_type_in_list(I,edible_trash) | adminbus_trash)
if(I.hidden_uplink)
to_chat(src, "You really should not be eating this.")
@@ -841,6 +847,8 @@
to_chat(src, "You can taste the flavor of aromatic rolling paper and funny looks.")
else if(istype(I,/obj/item/weapon/paper))
to_chat(src, "You can taste the dry flavor of bureaucracy.")
+ else if(istype(I,/obj/item/weapon/book))
+ to_chat(src, "You can taste the dry flavor of knowledge.")
else if(istype(I,/obj/item/weapon/dice) || istype(I,/obj/item/roulette_ball))
to_chat(src, "You can taste the bitter flavor of cheating.")
else if(istype(I,/obj/item/weapon/lipstick))