Fixes cutlery ignoring the target's nutriment fullness (#5638)

Spoons used to allow people to ignore the fact they were already full, this should fix this.
This commit is contained in:
Alberyk
2018-11-19 20:13:43 -02:00
committed by Erki
parent 4778c04dff
commit 107b0aec01
2 changed files with 7 additions and 1 deletions

View File

@@ -36,7 +36,6 @@
return ..()
var/fullness = M.nutrition + (M.reagents.get_reagent_amount("nutriment") * 25)
if (reagents.total_volume > 0)
reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST)
if(M == user)
if(!M.can_eat(loaded))
return
@@ -52,6 +51,7 @@
if(!(M.can_force_feed(user, loaded) && do_mob(user, M, 5 SECONDS)))
return
M.visible_message("<span class='notice'>\The [user] feeds some [loaded] to \the [M] with \the [src].</span>")
reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST)
playsound(M.loc,'sound/items/eatfood.ogg', rand(10,40), 1)
cut_overlays()
return