mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Tweaked soporific and new chems a bit more. Added Paracetamol, a lesser drug to tramadol, known to all as tylenol, and implemented it into sleepers! Gave inaprovaline the IB slowing property to keep sleepers in the game and allow EMTs better usage. Oxycodone made easier to craft by making the plasma a catalyst, but decreased it's overdose limit. Applied oxycodone and paracetamol to be able to handle things painkillers should.
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
/mob/living/var/traumatic_shock = 0
|
|
/mob/living/carbon/var/shock_stage = 0
|
|
|
|
// proc to find out in how much pain the mob is at the moment
|
|
/mob/living/carbon/proc/updateshock()
|
|
src.traumatic_shock = \
|
|
1 * src.getOxyLoss() + \
|
|
0.7 * src.getToxLoss() + \
|
|
1.5 * src.getFireLoss() + \
|
|
1.2 * src.getBruteLoss() + \
|
|
1.7 * src.getCloneLoss() + \
|
|
2 * src.halloss
|
|
|
|
if(reagents.has_reagent("alkysine"))
|
|
src.traumatic_shock -= 10
|
|
if(reagents.has_reagent("inaprovaline"))
|
|
src.traumatic_shock -= 25
|
|
if(reagents.has_reagent("synaptizine"))
|
|
src.traumatic_shock -= 40
|
|
if(reagents.has_reagent("paracetamol"))
|
|
src.traumatic_shock -= 50
|
|
if(reagents.has_reagent("tramadol"))
|
|
src.traumatic_shock -= 80
|
|
if(reagents.has_reagent("oxycodone"))
|
|
src.traumatic_shock -= 200
|
|
if(src.slurring)
|
|
src.traumatic_shock -= 20
|
|
if(src.analgesic)
|
|
src.traumatic_shock = 0
|
|
|
|
// broken or ripped off organs will add quite a bit of pain
|
|
if(istype(src,/mob/living/carbon/human))
|
|
var/mob/living/carbon/human/M = src
|
|
for(var/datum/organ/external/organ in M.organs)
|
|
if (!organ)
|
|
continue
|
|
if((organ.status & ORGAN_DESTROYED) && !organ.amputated)
|
|
src.traumatic_shock += 60
|
|
else if(organ.status & ORGAN_BROKEN || organ.open)
|
|
src.traumatic_shock += 30
|
|
if(organ.status & ORGAN_SPLINTED)
|
|
src.traumatic_shock -= 25
|
|
|
|
if(src.traumatic_shock < 0)
|
|
src.traumatic_shock = 0
|
|
|
|
return src.traumatic_shock
|
|
|
|
|
|
/mob/living/carbon/proc/handle_shock()
|
|
updateshock()
|