mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
Merge pull request #13221 from liache/DeadPressurePatch
Reduces Post-Morten Pressure Damage
This commit is contained in:
@@ -777,6 +777,8 @@
|
||||
|
||||
if(adjusted_pressure >= species.hazard_high_pressure)
|
||||
var/pressure_damage = min( ( (adjusted_pressure / species.hazard_high_pressure) -1 )*PRESSURE_DAMAGE_COEFFICIENT , MAX_HIGH_PRESSURE_DAMAGE)
|
||||
if(stat==DEAD)
|
||||
pressure_damage = pressure_damage/2
|
||||
take_overall_damage(brute=pressure_damage, used_weapon = "High Pressure")
|
||||
throw_alert("pressure", /obj/screen/alert/highpressure, 2)
|
||||
else if(adjusted_pressure >= species.warning_high_pressure)
|
||||
@@ -788,7 +790,10 @@
|
||||
else
|
||||
if( !(COLD_RESISTANCE in mutations))
|
||||
if(!isSynthetic() || !nif || !nif.flag_check(NIF_O_PRESSURESEAL,NIF_FLAGS_OTHER)) //VOREStation Edit - NIF pressure seals
|
||||
take_overall_damage(brute=LOW_PRESSURE_DAMAGE, used_weapon = "Low Pressure")
|
||||
var/pressure_damage = LOW_PRESSURE_DAMAGE
|
||||
if(stat==DEAD)
|
||||
pressure_damage = pressure_damage/2
|
||||
take_overall_damage(brute=pressure_damage, used_weapon = "Low Pressure")
|
||||
if(getOxyLoss() < 55) // 12 OxyLoss per 4 ticks when wearing internals; unconsciousness in 16 ticks, roughly half a minute
|
||||
var/pressure_dam = 3 // 16 OxyLoss per 4 ticks when no internals present; unconsciousness in 13 ticks, roughly twenty seconds
|
||||
// (Extra 1 oxyloss from failed breath)
|
||||
|
||||
Reference in New Issue
Block a user