mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
Fixes borgs not being able to unabsorb (#17742)
* Fixes borgs not being able to unabsorb * spider fix as well
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user