Delicious knowledge (#16006)

* Delicious knowledge

Added books to the option of trash eater edible items.

* Stopped from eating carved books
This commit is contained in:
SatinIsle
2024-05-26 19:25:36 +10:00
committed by GitHub
parent aca8f67d7e
commit 8649fe918a
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -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,
+8
View File
@@ -782,6 +782,12 @@
to_chat(src, "<span class='warning'>\The [pocketpal] doesn't allow you to eat it.</span>")
return
if(istype(I, /obj/item/weapon/book))
var/obj/item/weapon/book/book = I
if(book.carved)
to_chat(src, "<span class='warning'>\The [book] is not worth eating without the filling.</span>")
return
if(is_type_in_list(I,edible_trash) | adminbus_trash)
if(I.hidden_uplink)
to_chat(src, "<span class='warning'>You really should not be eating this.</span>")
@@ -841,6 +847,8 @@
to_chat(src, "<span class='notice'>You can taste the flavor of aromatic rolling paper and funny looks.</span>")
else if(istype(I,/obj/item/weapon/paper))
to_chat(src, "<span class='notice'>You can taste the dry flavor of bureaucracy.</span>")
else if(istype(I,/obj/item/weapon/book))
to_chat(src, "<span class='notice'>You can taste the dry flavor of knowledge.</span>")
else if(istype(I,/obj/item/weapon/dice) || istype(I,/obj/item/roulette_ball))
to_chat(src, "<span class='notice'>You can taste the bitter flavor of cheating.</span>")
else if(istype(I,/obj/item/weapon/lipstick))