Make digest_act even more generic (and contaminate)

Now returns nutrition that should be gained, and accepts an internal_contents list and where you want subobjects placed
This commit is contained in:
Arokha Sieyes
2018-01-10 10:02:13 -05:00
parent 449dcbb0b7
commit 072a40dea3
6 changed files with 75 additions and 68 deletions
@@ -404,10 +404,11 @@
else
var/obj/item/T = target
if(istype(T))
var/digested = T.digest_act()
var/digested = T.digest_act(item_storage = src)
if(!digested)
items_preserved |= T
return
else
hound.cell.charge += (50 * digested)
if(UI_open == 1)
update_patient()