Update 2.2

Changed frequency for pain emotes to play, as per the following;
**In life.dm**
- One at shock stage >= 80, at a 20% chance
- One at shock stage 120 when you're about to black out, at a 40% chance to play
- One at shock stage 150 (60% chance to play)

**In human_organs.dm**
- Having broken ribs will emote pain on a 10% chance.
- Dropping things from your hands will also emote pain (to simulate trying to pick up things with a broken hand being **excruciatingly** painful).

**In pain.dm**
- Custom pain messages (such as "your upper body aches badly) will no longer play pain often *at all*, as they now reduce the chance by a factor of 10
This commit is contained in:
Rykka Stormheart
2023-03-03 04:42:55 -08:00
parent 9c80b225aa
commit 4c1eedaaec
3 changed files with 9 additions and 14 deletions

View File

@@ -39,7 +39,7 @@
last_pain_message = message
to_chat(src,message)
// CHOMPAdd: Emote in pain for custom pain, too
if(prob(power) && !isbelly(loc)) // No pain noises inside bellies.
if(prob(power / 10) && !isbelly(loc)) // No pain noises inside bellies.
emote("pain")
// CHOMPAdd End
@@ -49,7 +49,7 @@
next_pain_time = world.time + (100 - power)
multilimb_pain_time = world.time + (100 - power)
// CHOMPAdd: Emote in pain for custom pain, too
if(prob(power) && !isbelly(loc)) // No pain noises inside bellies.
if(prob(power / 10) && !isbelly(loc)) // No pain noises inside bellies.
emote("pain")
// CHOMPAdd End