From cce138b0949ffe8b656587a27463f039a6dd52f8 Mon Sep 17 00:00:00 2001 From: Verkister Date: Wed, 6 Dec 2017 20:57:54 +0200 Subject: [PATCH] Makes player simplemobs able to finish off snacks. No more endless futile nibbling. Tested working fine. --- code/modules/reagents/reagent_containers/food/snacks.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/reagent_containers/food/snacks.dm b/code/modules/reagents/reagent_containers/food/snacks.dm index 100aa43165..2c2a3966a3 100644 --- a/code/modules/reagents/reagent_containers/food/snacks.dm +++ b/code/modules/reagents/reagent_containers/food/snacks.dm @@ -29,7 +29,8 @@ //Placeholder for effect that trigger on eating that aren't tied to reagents. /obj/item/weapon/reagent_containers/food/snacks/proc/On_Consume(var/mob/M) - if(!usr) return + if(!usr) + usr = M if(!reagents.total_volume) M.visible_message("[M] finishes eating \the [src].","You finish eating \the [src].") usr.drop_from_inventory(src) //so icons update :[ @@ -224,7 +225,7 @@ return user.visible_message("[user] nibbles away at \the [src].","You nibble away at \the [src].") bitecount++ - if(reagents && user.reagents) + if(reagents) reagents.trans_to_mob(user, bitesize, CHEM_INGEST) spawn(5) if(!src && !user.client)