Slimes can eat loose food, decals, dirt, and so on (#9064)

* Slimes can eat food, decals, dirt, and so on

* Bugfix I found in the course of math

* I think I wrote that as a fallback but I'm not sure

* review fix - tested this and it seems to work
This commit is contained in:
Ava
2023-04-09 10:49:59 -08:00
committed by GitHub
parent f445ffde0a
commit 2976177f2a
10 changed files with 145 additions and 2 deletions
+13
View File
@@ -558,3 +558,16 @@ var/global/list/organ_cache = list()
critter.eat_food_item(src)
return TRUE
return ..()
/obj/item/organ/is_slime_food()
return !robotic // no yucky metal
/obj/item/organ/slime_chomp(mob/living/simple_mob/slime/xenobio/slime)
slime.adjust_nutrition(max(10, w_class * 10))
slime.visible_message(
SPAN_NOTICE("\The [slime] [pick("absorbs", "consumes", "devours", "eats", "engulfs", "envelops", "schlorps up", "vacuums up")] \the [src]!"),
SPAN_NOTICE("You absorb \the [src]!")
)
playsound(slime, 'sound/items/eatfood.ogg', rand(10, 50), TRUE)
playsound(slime, 'sound/effects/slime_squish.ogg', 30, TRUE)
qdel(src)