This commit is contained in:
NullSnapshot
2015-10-25 18:10:14 -07:00
parent 00e0014a3f
commit c5fd677206

View File

@@ -103,6 +103,11 @@
R.adjustBruteLoss(-weld_rate)
if(wire_rate && R.getFireLoss() && cell.checked_use(wire_power_use * wire_rate * CELLRATE))
R.adjustFireLoss(-wire_rate)
else if(istype(occupant, /mob/living/carbon/human))
var/mob/living/carbon/human/H = occupant
if(!isnull(H.internal_organs_by_name["cell"] && H.nutrition < 450))
H.nutrition = min(H.nutrition+10, 450)
/obj/machinery/recharge_station/examine(mob/user)
..(user)
@@ -200,6 +205,8 @@
go_in(R)
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R)
if(istype(R, /mob/living/silicon/robot))
if(!istype(R))
return
if(occupant)
@@ -217,6 +224,18 @@
update_icon()
return 1
else if(istype(R, /mob/living/carbon/human))
var/mob/living/carbon/human/H = R
if(!isnull(H.internal_organs_by_name["cell"]))
add_fingerprint(H)
H.reset_view(src)
H.forceMove(src)
occupant = H
update_icon()
return 1
else
return
/obj/machinery/recharge_station/proc/go_out()
if(!occupant)
return