mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-28 19:11:37 +00:00
Creates framework for species to react differently to traumatic shock
* Adds new var called "trauma_mod" for downstream Will not affect anything on Polaris unless someone elects to add traits that can change this, or to use it for species defines. Makes it that you basically go into paincrit faster or slower. * Makes use of trauma_mod var from species.dm. Will not affect anything on Polaris unless someone elects to add traits that can change the variable in a mob, or to use it for species defines. Makes it that you basically go into paincrit faster or slower. * Adds changelog for trauma_mod variable addition * Fixes differences between VOREstation and Polaris I was dumb and just copy from downstream to upstream, thinking there'd be no differences in the file.
This commit is contained in:
@@ -102,6 +102,7 @@
|
||||
var/alcohol_mod = 1 // Multiplier to alcohol strength; 0.5 = half, 0 = no effect at all, 2 = double, etc.
|
||||
var/pain_mod = 1 // Multiplier to pain effects; 0.5 = half, 0 = no effect (equal to NO_PAIN, really), 2 = double, etc.
|
||||
var/spice_mod = 1 // Multiplier to spice/capsaicin/frostoil effects; 0.5 = half, 0 = no effect (immunity), 2 = double, etc.
|
||||
var/trauma_mod = 1 // Affects traumatic shock (how fast pain crit happens). 0 = no effect (immunity to pain crit), 2 = double etc.Overriden by "can_feel_pain" var
|
||||
// set below is EMP interactivity for nonsynth carbons
|
||||
var/emp_sensitivity = 0 // bitflag. valid flags are: EMP_PAIN, EMP_BLIND, EMP_DEAFEN, EMP_CONFUSE, EMP_STUN, and EMP_(BRUTE/BURN/TOX/OXY)_DMG
|
||||
var/emp_dmg_mod = 1 // Multiplier to all EMP damage sustained by the mob, if it's EMP-sensitive
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
1.2 * src.getShockFireLoss() + \
|
||||
1.2 * src.getShockBruteLoss() + \
|
||||
1.7 * src.getCloneLoss() + \
|
||||
2 * src.halloss + \
|
||||
-1 * src.chem_effects[CE_PAINKILLER]
|
||||
2 * src.halloss
|
||||
|
||||
if(src.slurring)
|
||||
src.traumatic_shock -= 20
|
||||
@@ -27,6 +26,13 @@
|
||||
src.traumatic_shock += 30
|
||||
else if(organ.is_dislocated())
|
||||
src.traumatic_shock += 15
|
||||
|
||||
// Some individuals/species are more or less supectible to pain. Default trauma_mod = 1. Does not affect painkillers
|
||||
if(istype(src, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = src
|
||||
H.traumatic_shock *= H.species.trauma_mod
|
||||
|
||||
src.traumatic_shock += -1 * src.chem_effects[CE_PAINKILLER]
|
||||
|
||||
if(src.traumatic_shock < 0)
|
||||
src.traumatic_shock = 0
|
||||
|
||||
Reference in New Issue
Block a user