mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
You guys are hard to please
This commit is contained in:
@@ -200,46 +200,46 @@
|
|||||||
if(istype(R))
|
if(istype(R))
|
||||||
go_in(R)
|
go_in(R)
|
||||||
|
|
||||||
/obj/machinery/recharge_station/proc/go_out()
|
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R)
|
||||||
if(!(occupant))
|
if(!istype(R))
|
||||||
return
|
return
|
||||||
occupant.forceMove(loc)
|
if(occupant)
|
||||||
occupant.reset_view()
|
|
||||||
occupant = null
|
|
||||||
update_icon()
|
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R)
|
|
||||||
R.reset_view(src)
|
R.reset_view(src)
|
||||||
R.forceMove(src)
|
R.forceMove(src)
|
||||||
occupant = R
|
occupant = R
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
/obj/machinery/recharge_station/proc/go_out()
|
||||||
|
if(!occupant)
|
||||||
|
return
|
||||||
|
|
||||||
|
occupant.forceMove(loc)
|
||||||
|
occupant.reset_view()
|
||||||
|
occupant = null
|
||||||
|
update_icon()
|
||||||
|
|
||||||
/obj/machinery/recharge_station/verb/move_eject()
|
/obj/machinery/recharge_station/verb/move_eject()
|
||||||
set category = "Object"
|
set category = "Object"
|
||||||
|
set name = "Eject Recharger"
|
||||||
set src in oview(1)
|
set src in oview(1)
|
||||||
if(usr.stat != 0)
|
|
||||||
|
// TODO : Change to incapacitated() on merge.
|
||||||
|
if(usr.stat || usr.lying || usr.resting || usr.buckled)
|
||||||
return
|
return
|
||||||
|
|
||||||
go_out()
|
go_out()
|
||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/recharge_station/verb/move_inside()
|
/obj/machinery/recharge_station/verb/move_inside()
|
||||||
set category = "Object"
|
set category = "Object"
|
||||||
|
set name = "Enter Recharger"
|
||||||
set src in oview(1)
|
set src in oview(1)
|
||||||
|
|
||||||
if(usr.stat == DEAD)
|
// TODO : Change to incapacitated() on merge.
|
||||||
return
|
if(usr.stat || usr.lying || usr.resting || usr.buckled)
|
||||||
if(occupant)
|
|
||||||
usr << "<span class='notice'>\The [src] is already occupied!</span>"
|
|
||||||
return
|
|
||||||
|
|
||||||
var/mob/living/silicon/robot/R = usr
|
|
||||||
if(!istype(R))
|
|
||||||
usr << "<span class='notice'>Only synthetics may enter the recharger!</span>"
|
|
||||||
return
|
|
||||||
if(!R.cell)
|
|
||||||
usr << "<span class='notice'>Without a powercell, you can't be recharged.</span>"
|
|
||||||
return
|
return
|
||||||
|
|
||||||
go_in(usr)
|
go_in(usr)
|
||||||
|
|||||||
Reference in New Issue
Block a user