Tweaks Unconsciousness (#14626)

This commit is contained in:
SleepyGemmy
2022-08-21 19:44:51 +02:00
committed by GitHub
parent d565b72f1d
commit ea6ec4dd52
11 changed files with 41 additions and 33 deletions
+4 -10
View File
@@ -139,7 +139,6 @@
var/safe_exhaled_max = 10
var/safe_toxins_max = 0.2
var/SA_para_min = 1
var/SA_sleep_min = 5
var/inhaled_gas_used = 0
@@ -243,15 +242,10 @@
if(breath.gas[GAS_N2O])
var/SA_pp = (breath.gas[GAS_N2O] / breath.total_moles) * breath_pressure
// Enough to make us paralysed for a bit
if(SA_pp > SA_para_min)
// 3 gives them one second to wake up and run away a bit!
owner.Paralyse(3)
// Enough to make us sleep as well
if(SA_pp > SA_sleep_min)
owner.Sleeping(10)
// Enough to make us sleep as well
if(SA_pp > SA_sleep_min)
owner.Sleeping(10)
owner.eye_blurry = 10
// There is sleeping gas in their lungs, but only a little, so give them a bit of a warning
else if(SA_pp > 0.15)