[MIRROR] Fixes borgs not being able to unabsorb (#10965)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-28 11:16:11 -07:00
committed by GitHub
parent 868d64c45f
commit 872634f5fe
2 changed files with 11 additions and 5 deletions

View File

@@ -29,7 +29,7 @@
//When procs are used
RegisterSignal(owner, COMSIG_CHECK_SILK_AMOUNT, PROC_REF(check_silk_amount))
RegisterSignal(owner, COMSIG_WEAVE_STRUCTURE, PROC_REF(weave_structure))
RegisterSignal(owner, COMSIG_TOGGLE_SILK_PRODUCTION, PROC_REF(weave_item))
RegisterSignal(owner, COMSIG_TOGGLE_SILK_PRODUCTION, PROC_REF(toggle_silk_production))
RegisterSignal(owner, COMSIG_WEAVE_ITEM, PROC_REF(weave_item))
RegisterSignal(owner, COMSIG_SET_SILK_COLOR, PROC_REF(set_silk_color))

View File

@@ -124,10 +124,16 @@ GLOBAL_LIST_INIT(digest_modes, list())
id = DM_UNABSORB
/datum/digest_mode/unabsorb/process_mob(obj/belly/B, mob/living/L)
if(L.absorbed && B.owner.nutrition >= 100)
B.owner.adjust_nutrition(-100)
B.unabsorb_living(L)
return list("to_update" = TRUE)
if(L.absorbed)
if(B.owner.nutrition >= 100)
B.owner.adjust_nutrition(-100)
B.unabsorb_living(L)
return list("to_update" = TRUE)
else if(isrobot(B.owner))
var/mob/living/silicon/robot/robot_owner = B.owner
if(robot_owner.cell_use_power(100))
B.unabsorb_living(L)
return list("to_update" = TRUE)
/datum/digest_mode/drain
id = DM_DRAIN