mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Painkillers stop regular pain messages too, not only custom ones.
This commit is contained in:
@@ -9,6 +9,12 @@ mob/var/next_pain_time = 0
|
|||||||
// amount is a num from 1 to 100
|
// amount is a num from 1 to 100
|
||||||
mob/proc/pain(var/partname, var/amount, var/force, var/burning = 0)
|
mob/proc/pain(var/partname, var/amount, var/force, var/burning = 0)
|
||||||
if(stat >= 2) return
|
if(stat >= 2) return
|
||||||
|
if(reagents.has_reagent("tramadol"))
|
||||||
|
return
|
||||||
|
if(reagents.has_reagent("oxycodone"))
|
||||||
|
return
|
||||||
|
if(analgesic)
|
||||||
|
return
|
||||||
if(world.time < next_pain_time && !force)
|
if(world.time < next_pain_time && !force)
|
||||||
return
|
return
|
||||||
if(amount > 10 && istype(src,/mob/living/carbon/human))
|
if(amount > 10 && istype(src,/mob/living/carbon/human))
|
||||||
|
|||||||
Reference in New Issue
Block a user