mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Ling Space Adaption (#10982)
This commit is contained in:
@@ -21,7 +21,11 @@
|
||||
return from.trans_to_holder(target,amount,multiplier,copy) //complete transfer
|
||||
|
||||
/mob/living/carbon/proc/breathe(var/volume_needed = BREATH_VOLUME)
|
||||
if(species && (species.flags & NO_BREATHE)) return
|
||||
if(species && (species.flags & NO_BREATHE))
|
||||
return
|
||||
var/datum/changeling/changeling = get_antag_datum(MODE_CHANGELING)
|
||||
if(changeling?.space_adapted)
|
||||
return
|
||||
|
||||
volume_needed *= (species?.breath_vol_mul || 1)
|
||||
|
||||
|
||||
@@ -1851,9 +1851,8 @@
|
||||
|
||||
/mob/living/carbon/human/need_breathe()
|
||||
if(!(mNobreath in mutations) && species.breathing_organ && species.has_organ[species.breathing_organ])
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
//Get fluffy numbers
|
||||
/mob/living/carbon/human/proc/blood_pressure()
|
||||
|
||||
@@ -279,4 +279,12 @@
|
||||
set_death_time(CREW, world.time)
|
||||
|
||||
/mob/living/carbon/human/get_contained_external_atoms()
|
||||
. = ..() - organs
|
||||
. = ..() - organs
|
||||
|
||||
/mob/living/carbon/human/proc/pressure_resistant()
|
||||
if(COLD_RESISTANCE in mutations)
|
||||
return TRUE
|
||||
var/datum/changeling/changeling = get_antag_datum(MODE_CHANGELING)
|
||||
if(changeling?.space_adapted)
|
||||
return TRUE
|
||||
return FALSE
|
||||
@@ -427,7 +427,7 @@
|
||||
else if(adjusted_pressure >= species.hazard_low_pressure)
|
||||
pressure_alert = -1
|
||||
else
|
||||
if(!(COLD_RESISTANCE in mutations))
|
||||
if(!pressure_resistant())
|
||||
var/list/obj/item/organ/external/organs = get_damageable_organs()
|
||||
for(var/obj/item/organ/external/O in organs)
|
||||
if(QDELETED(O))
|
||||
|
||||
@@ -1206,7 +1206,11 @@ proc/is_blind(A)
|
||||
sdisabilities &= ~DEAF
|
||||
|
||||
/mob/proc/get_antag_datum(var/antag_role)
|
||||
return
|
||||
if(!mind)
|
||||
return
|
||||
var/datum/D = mind.antag_datums[antag_role]
|
||||
if(D)
|
||||
return D
|
||||
|
||||
/mob/dump_contents()
|
||||
for(var/thing in get_contained_external_atoms())
|
||||
@@ -1223,4 +1227,4 @@ proc/is_blind(A)
|
||||
var/obj/item/grab/G = thing
|
||||
if(G.state >= GRAB_NECK)
|
||||
return TRUE
|
||||
return FALSE
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user