Skip to content

Commit

Permalink
[MIRROR] Less laughing from trace nitrous (#1803)
Browse files Browse the repository at this point in the history
* Less laughing from trace nitrous (#81223)

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Swift <[email protected]>
  • Loading branch information
3 people authored Feb 6, 2024
1 parent ac150bc commit 6f34a41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/surgery/organs/internal/lungs/_lungs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
var/safe_plasma_min = 0
///How much breath partial pressure is a safe amount of plasma. 0 means that we are immune to plasma.
var/safe_plasma_max = 0.05
var/n2o_detect_min = 0.08 //Minimum n2o for effects
var/n2o_para_min = 1 //Sleeping agent
var/n2o_sleep_min = 5 //Sleeping agent
var/BZ_trip_balls_min = 1 //BZ gas
Expand Down Expand Up @@ -503,12 +504,12 @@
/obj/item/organ/internal/lungs/proc/too_much_n2o(mob/living/carbon/breather, datum/gas_mixture/breath, n2o_pp, old_n2o_pp)
if(n2o_pp < n2o_para_min)
// Small amount of N2O, small side-effects.
if(n2o_pp <= 0.01)
if(old_n2o_pp > 0.01)
if(n2o_pp <= n2o_detect_min)
if(old_n2o_pp > n2o_detect_min)
return BREATH_LOST
return
// No alert for small amounts, but the mob randomly feels euphoric.
if(old_n2o_pp >= n2o_para_min || old_n2o_pp <= 0.01)
if(old_n2o_pp >= n2o_para_min || old_n2o_pp <= n2o_detect_min)
breather.clear_alert(ALERT_TOO_MUCH_N2O)

if(prob(20))
Expand Down

0 comments on commit 6f34a41

Please sign in to comment.