This commit is contained in:
NonQueueingMatt
2019-12-13 17:27:55 +01:00
parent 0a152294b7
commit a92da3bdd5
+5
View File
@@ -16,6 +16,8 @@
max_damage = 70
relative_size = 60
var/breathing = 0
var/rescued = FALSE // whether or not a collapsed lung has been rescued with a syringe
var/oxygen_deprivation = 0
var/last_successful_breath
@@ -252,6 +254,9 @@
if(!BP_IS_ROBOTIC(src) && species.breathing_sound && is_below_sound_pressure(get_turf(owner)))
if(breathing || owner.shock_stage >= 10)
sound_to(owner, sound(species.breathing_sound,0,0,0,5))
breathing = 0
else
breathing = 1
return failed_breath