mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Give opium a painkilling effect (#34876)
* Update shock.dm * Update Chemistry-Reagents.dm * Update shock.dm
This commit is contained in:
@@ -46,11 +46,10 @@
|
||||
/mob/living/carbon/proc/handle_shock() //Currently only used for humans
|
||||
update_pain_level()
|
||||
|
||||
|
||||
/mob/living/carbon/proc/total_painkillers()
|
||||
for(var/datum/reagent/R in reagents.reagent_list)
|
||||
. += R.pain_resistance
|
||||
|
||||
/mob/living/carbon/proc/has_painkillers()
|
||||
if(reagents.has_reagent(PARACETAMOL))
|
||||
return TRUE
|
||||
if(reagents.has_reagent(TRAMADOL))
|
||||
return TRUE
|
||||
if(reagents.has_reagent(OXYCODONE))
|
||||
return TRUE
|
||||
return FALSE
|
||||
return total_painkillers() > 0
|
||||
|
||||
@@ -9232,6 +9232,7 @@ var/global/list/tonio_doesnt_remove=list("tonio", "blood")
|
||||
name = "Opium"
|
||||
id = OPIUM
|
||||
description = "Opium is an exceptional natural analgesic."
|
||||
pain_resistance = 80
|
||||
color = "#AE9260" //rgb: 174, 146, 96
|
||||
|
||||
/datum/reagent/bicaridine/opium/on_plant_life(obj/machinery/portable_atmospherics/hydroponics/T)
|
||||
|
||||
Reference in New Issue
Block a user