Fixes Plasmamemes for realsies. Monkeys and Humans now breath all of their breath as long as they can process that gas.

This commit is contained in:
KazeEspada
2016-02-23 21:54:42 -07:00
parent ff45d89eac
commit f44a2ca210
2 changed files with 7 additions and 7 deletions
@@ -1120,7 +1120,7 @@
H.failed_last_breath = 0
if(H.getOxyLoss())
H.adjustOxyLoss(-5)
gas_breathed = breath_gases["o2"][MOLES]/6
gas_breathed = breath_gases["o2"][MOLES]
H.clear_alert("oxy")
//Exhale
@@ -1157,7 +1157,7 @@
else
H.failed_last_breath = 0
H.adjustOxyLoss(-5)
gas_breathed = breath_gases["co2"][MOLES]/6
gas_breathed = breath_gases["co2"][MOLES]
H.clear_alert("not_enough_co2")
//Exhale
@@ -1187,7 +1187,7 @@
else
H.failed_last_breath = 0
H.adjustOxyLoss(-5)
gas_breathed = breath_gases["plasma"][MOLES]/6
gas_breathed = breath_gases["plasma"][MOLES]
H.clear_alert("not_enough_tox")
//Exhale
+4 -4
View File
@@ -88,8 +88,8 @@
check_breath(breath)
/*if(breath)
loc.assume_air(breath)*/
if(breath)
loc.assume_air(breath)
/mob/living/carbon/proc/has_smoke_protection()
return 0
@@ -133,7 +133,7 @@
var/ratio = safe_oxy_min/O2_partialpressure
adjustOxyLoss(min(5*ratio, 3))
failed_last_breath = 1
oxygen_used = breath_gases["o2"][MOLES]*ratio/6
oxygen_used = breath_gases["o2"][MOLES]*ratio
else
adjustOxyLoss(3)
failed_last_breath = 1
@@ -143,7 +143,7 @@
failed_last_breath = 0
if(oxyloss)
adjustOxyLoss(-5)
oxygen_used = breath_gases["o2"][MOLES]/6
oxygen_used = breath_gases["o2"][MOLES]
clear_alert("oxy")
breath_gases["o2"][MOLES] -= oxygen_used