mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Additional checks for heartbeat, reduced volume
This commit is contained in:
@@ -1562,7 +1562,12 @@
|
|||||||
return temp
|
return temp
|
||||||
|
|
||||||
proc/handle_heartbeat()
|
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
|
return
|
||||||
|
|
||||||
if(pulse >= PULSE_2FAST || shock_stage >= 10 || istype(get_turf(src), /turf/space))
|
if(pulse >= PULSE_2FAST || shock_stage >= 10 || istype(get_turf(src), /turf/space))
|
||||||
@@ -1573,7 +1578,7 @@
|
|||||||
|
|
||||||
if(heartbeat >= rate)
|
if(heartbeat >= rate)
|
||||||
heartbeat = 0
|
heartbeat = 0
|
||||||
src << sound('sound/effects/singlebeat.ogg',0,0,0,60)
|
src << sound('sound/effects/singlebeat.ogg',0,0,0,50)
|
||||||
else
|
else
|
||||||
heartbeat++
|
heartbeat++
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user