mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fixes a borg charger bump runtime
This commit is contained in:
@@ -196,8 +196,9 @@
|
|||||||
if(icon_update_tick == 0)
|
if(icon_update_tick == 0)
|
||||||
build_overlays()
|
build_overlays()
|
||||||
|
|
||||||
/obj/machinery/recharge_station/Bumped(var/mob/AM)
|
/obj/machinery/recharge_station/Bumped(var/mob/living/silicon/robot/R)
|
||||||
move_inside(AM)
|
if(istype(R))
|
||||||
|
go_in(R)
|
||||||
|
|
||||||
/obj/machinery/recharge_station/proc/go_out()
|
/obj/machinery/recharge_station/proc/go_out()
|
||||||
if(!(occupant))
|
if(!(occupant))
|
||||||
@@ -208,6 +209,12 @@
|
|||||||
update_icon()
|
update_icon()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R)
|
||||||
|
R.reset_view(src)
|
||||||
|
R.loc = src
|
||||||
|
occupant = R
|
||||||
|
update_icon()
|
||||||
|
|
||||||
/obj/machinery/recharge_station/verb/move_eject()
|
/obj/machinery/recharge_station/verb/move_eject()
|
||||||
set category = "Object"
|
set category = "Object"
|
||||||
set src in oview(1)
|
set src in oview(1)
|
||||||
@@ -235,8 +242,5 @@
|
|||||||
usr << "<span class='notice'>Without a powercell, you can't be recharged.</span>"
|
usr << "<span class='notice'>Without a powercell, you can't be recharged.</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
usr.reset_view(src)
|
go_in(usr)
|
||||||
usr.loc = src
|
|
||||||
occupant = usr
|
|
||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
update_icon()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user