mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-20 19:57:28 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user