mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
Adds framework for synths to feel pain
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// power decides how much painkillers will stop the message
|
||||
// force means it ignores anti-spam timer
|
||||
/mob/living/carbon/proc/custom_pain(message, power, force)
|
||||
if(!message || stat || !can_feel_pain() || chem_effects[CE_PAINKILLER] > power)
|
||||
if((!message || stat || !can_feel_pain() || chem_effects[CE_PAINKILLER] > power) && !synth_cosmetic_pain)
|
||||
return 0
|
||||
message = "<span class='danger'>[message]</span>"
|
||||
if(power >= 50)
|
||||
@@ -25,7 +25,7 @@
|
||||
if(stat)
|
||||
return
|
||||
|
||||
if(!can_feel_pain())
|
||||
if(!can_feel_pain() && !synth_cosmetic_pain)
|
||||
return
|
||||
|
||||
if(world.time < next_pain_time)
|
||||
@@ -33,7 +33,7 @@
|
||||
var/maxdam = 0
|
||||
var/obj/item/organ/external/damaged_organ = null
|
||||
for(var/obj/item/organ/external/E in organs)
|
||||
if(!E.organ_can_feel_pain()) continue
|
||||
if(!E.organ_can_feel_pain() && !synth_cosmetic_pain) continue
|
||||
var/dam = E.get_damage()
|
||||
// make the choice of the organ depend on damage,
|
||||
// but also sometimes use one of the less damaged ones
|
||||
|
||||
Reference in New Issue
Block a user