mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user