Additional checks for heartbeat, reduced volume

This commit is contained in:
volas
2015-03-08 19:27:31 +03:00
parent cef52c73f8
commit 3d55fc58b9

View File

@@ -1562,7 +1562,12 @@
return temp
proc/handle_heartbeat()
if(pulse == PULSE_NONE)
if(pulse == PULSE_NONE || !species.has_organ["heart"])
return
var/datum/organ/internal/heart/H = internal_organs_by_name["heart"]
if(!H || H.robotic >=2 )
return
if(pulse >= PULSE_2FAST || shock_stage >= 10 || istype(get_turf(src), /turf/space))
@@ -1573,7 +1578,7 @@
if(heartbeat >= rate)
heartbeat = 0
src << sound('sound/effects/singlebeat.ogg',0,0,0,60)
src << sound('sound/effects/singlebeat.ogg',0,0,0,50)
else
heartbeat++