Fixes n2 alert not clearing correctly, if lungs have a safe_nitro_min, air is cut off, and then they get air again. (#62684)

This commit is contained in:
Tastyfish
2021-11-09 22:52:38 -05:00
committed by GitHub
parent c8ecc66b28
commit 1e72ee0a5c
+2 -2
View File
@@ -174,13 +174,13 @@
if(safe_nitro_min)
if(N2_pp < safe_nitro_min)
gas_breathed = handle_too_little_breath(breather, N2_pp, safe_nitro_min, breath_gases[/datum/gas/nitrogen][MOLES])
breather.throw_alert("nitro", /atom/movable/screen/alert/not_enough_nitro)
breather.throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro)
else
breather.failed_last_breath = FALSE
if(breather.health >= breather.crit_threshold)
breather.adjustOxyLoss(-5)
gas_breathed = breath_gases[/datum/gas/nitrogen][MOLES]
breather.clear_alert("nitro")
breather.clear_alert("not_enough_nitro")
//Exhale
breath_gases[/datum/gas/nitrogen][MOLES] -= gas_breathed