mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Additional checks for heartbeat, reduced volume
This commit is contained in:
@@ -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++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user