From 8e9705b6c70b4227df6abda94554bf83411339ab Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Mon, 7 Sep 2015 08:16:31 +0200 Subject: [PATCH] Re-adds recharge station checks. Because no one who stuffs non-operational/dead borgs into recharge stations will bother to eject them. --- code/game/machinery/rechargestation.dm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm index 6f3041dd6d..1ed307ee11 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -197,8 +197,7 @@ build_overlays() /obj/machinery/recharge_station/Bumped(var/mob/living/silicon/robot/R) - if(istype(R)) - go_in(R) + go_in(R) /obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R) if(!istype(R)) @@ -206,10 +205,18 @@ if(occupant) return + // TODO : Change to incapacitated() on merge. + if(R.stat || R.lying || R.resting || R.buckled) + return + if(!R.cell) + return + + add_fingerprint(R) R.reset_view(src) R.forceMove(src) occupant = R update_icon() + return 1 /obj/machinery/recharge_station/proc/go_out() if(!occupant) @@ -238,9 +245,4 @@ set name = "Enter Recharger" set src in oview(1) - // TODO : Change to incapacitated() on merge. - if(usr.stat || usr.lying || usr.resting || usr.buckled) - return - go_in(usr) - add_fingerprint(usr)