mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
Diona Pain (#8966)
Diona now feel pain, although they only take 70% of the pain other species experience.
Unathi now get a unique pain message, instead of the dear god one.
This commit is contained in:
@@ -1346,6 +1346,7 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
return
|
||||
var/last_pain = pain
|
||||
if(owner)
|
||||
amount *= owner.species.pain_mod
|
||||
amount -= (owner.chem_effects[CE_PAINKILLER]/3)
|
||||
if(amount <= 0)
|
||||
return
|
||||
|
||||
@@ -29,24 +29,25 @@ mob/var/next_pain_time = 0
|
||||
if(burning)
|
||||
switch(amount)
|
||||
if(1 to 10)
|
||||
msg = "<span class='danger'>Your [partname] burns.</span>"
|
||||
msg = species.organ_low_burn_message
|
||||
if(11 to 90)
|
||||
flash_weak_pain()
|
||||
msg = "<span class='danger'><font size=3>Your [partname] burns horribly!</font></span>"
|
||||
msg = species.organ_med_burn_message
|
||||
if(91 to 10000)
|
||||
flash_pain()
|
||||
msg = "<span class='danger'><font size=4>Your [partname] feels like it's on fire!</font></span>"
|
||||
msg = species.organ_high_burn_message
|
||||
else
|
||||
switch(amount)
|
||||
if(5 to 14)
|
||||
msg = "<b>Your [partname] hurts.</b>"
|
||||
msg = species.organ_low_pain_message
|
||||
if(15 to 90)
|
||||
flash_weak_pain()
|
||||
msg = "<b><font size=3>Your [partname] hurts badly!</font></b>"
|
||||
msg = species.organ_med_pain_message
|
||||
if(91 to 10000)
|
||||
flash_pain()
|
||||
msg = "<b><font size=3>Your [partname] is screaming out in pain!</font></b>"
|
||||
msg = species.organ_high_pain_message
|
||||
if(msg && (msg != last_pain_message || prob(10)))
|
||||
msg = replacetext(msg, "%PARTNAME%", partname)
|
||||
last_pain_message = msg
|
||||
to_chat(src, msg)
|
||||
next_pain_time = world.time + 50
|
||||
|
||||
Reference in New Issue
Block a user