Makes Ambient Heartbeat sound in space controlled by Ambiance settings (#6009)

* Add files via upload

* Revert "Merge pull request #1 from Shophaune/plant-bag-ui-bug-fix"

This reverts commit 62a60d4f87, reversing
changes made to 6f909ce590.

* makes ambiance heartbeat controlled by ambiance setting
This commit is contained in:
Shophaune
2019-03-26 21:17:34 +00:00
committed by Atermonera
parent 56b1f1eaff
commit 2b1916f836

View File

@@ -1578,7 +1578,7 @@
if(!H || (H.robotic >= ORGAN_ROBOT))
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) && is_preference_enabled(/datum/client_preference/play_ambiance)))
//PULSE_THREADY - maximum value for pulse, currently it 5.
//High pulse value corresponds to a fast rate of heartbeat.
//Divided by 2, otherwise it is too slow.