mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Re-adds recharge station checks.
Because no one who stuffs non-operational/dead borgs into recharge stations will bother to eject them.
This commit is contained in:
@@ -197,7 +197,6 @@
|
||||
build_overlays()
|
||||
|
||||
/obj/machinery/recharge_station/Bumped(var/mob/living/silicon/robot/R)
|
||||
if(istype(R))
|
||||
go_in(R)
|
||||
|
||||
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/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)
|
||||
|
||||
Reference in New Issue
Block a user