Editing Pain

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<noinclude>{{stub|reason=Needs detailed numbers on stat penalties. Psycasting. anomaly sources e.g. flesh body parts etc}}{{About|the stat|the ideoligious precept of the same name|Ideoligion#Pain{{!}}Ideoligion}}
+
<noinclude>
 
{{Capacity
 
{{Capacity
 
| default base value = 1
 
| default base value = 1
Line 6: Line 6:
 
}}</noinclude>
 
}}</noinclude>
 
<includeonly>:''Main Article: [[Pain]]''</includeonly>
 
<includeonly>:''Main Article: [[Pain]]''</includeonly>
Most biological creatures including [[colonist]]s, [[raider]]s, and [[animals]] feel pain caused by [[Injury|injuries]].  A pawn's pain level ranges from 0% to 100% and is displayed on their Health tab's Overview. Pain levels are None, Little, Moderate, Severe, and Extreme.{{Check Tag|Detail Needed|What percentage ranges do those names correlate to?}} Even a little pain causes unhappy [[Thoughts list|thoughts]]. Once pain passes 10%, it'll start to have an effect on [[consciousness]]. If a pawn's pain level meets or exceeds their [[Pain Shock Threshold]] they'll go into [[Injury#Shock|shock]], unable to move. Pawns with the [[Wimp]] trait will be incapacitated with only minor pain of 30%.
+
Most biological creatures including [[colonist]]s, [[raider]]s, and [[animals]] feel pain caused by [[Injury|injuries]].  A pawn's pain level ranges from 0% to 100% and is displayed on their Health tab's Overview. Pain levels are None, Little, Moderate, Severe, and Extreme. Even a little pain causes unhappy [[Thoughts list|thoughts]]. Once pain passes 10%, it'll start to have an effect on [[consciousness]]. If a pawn's pain level meets or exceeds their [[Pain Shock Threshold]] they'll go into [[Injury#Shock|shock]], unable to move. Pawns with the Wimp [[traits|trait]] will be incapacitated with only minor pain of 20%.
 
 
Most pain is temporary, but [[Injury#Scarring|scars]] and certain [[disease]]s can cause long-term pain.  A [[painstopper]] implant or the [[Psycasts#Painblock|Painblock]] psycast {{RoyaltyIcon}} will get rid of all a colonist's pain and negate any pain-related mood penalties. Note that colonists with the [[Masochist]] trait or an ideoligion with the [[Ideoligion#Pain|Pain: Idealized]] precept{{IdeologyIcon}} get a mood ''bonus'' from pain instead of a penalty, so it's usually better to leave them alone.
 
  
Injuries to the [[Artificial body parts|artificial parts]] do not cause any pain, so colonists with a lot of bionics will generally incur less pain during combat.
+
Most pain is temporary, but [[Injury#Scarring|scars]] and certain [[disease]]s can cause long-term pain.  A [[painstopper]] implant will get rid of all a colonist's pain and negate any pain-related mood penalties. Note that colonists with the Masochist trait get a mood ''bonus'' from pain instead of a penalty, so it's usually better to leave them alone.
  
=== Formula ===
+
==Formula==
 
Pain for a given pawn is the sum of the pain from each individual injury, with two extra steps at the end:
 
Pain for a given pawn is the sum of the pain from each individual injury, with two extra steps at the end:
 
* <code>pain = pain / healthFactor</code> for pawns with a healthFactor other than 1.0 (like [[grizzly bear]]s and other large animals).  Humans have a healthFactor of 1.0, so this doesn't impact humans
 
* <code>pain = pain / healthFactor</code> for pawns with a healthFactor other than 1.0 (like [[grizzly bear]]s and other large animals).  Humans have a healthFactor of 1.0, so this doesn't impact humans
Line 19: Line 17:
 
Pain from an individual injury is the product of the severity of the injury (the number of HP missing for things like cuts and burns) and the pain per severity for the injury type.  For example:
 
Pain from an individual injury is the product of the severity of the injury (the number of HP missing for things like cuts and burns) and the pain per severity for the injury type.  For example:
 
*30 burn damage causes 30 damage &times; 0.01875 pain per severity = 56.25% pain
 
*30 burn damage causes 30 damage &times; 0.01875 pain per severity = 56.25% pain
*30 cut damage causes 30 damage &times; 0.0125 pain per severity =  37.5% pain
+
*30 cut damage causes 30 damage &times; 0.00625 pain per severity =  18.75% pain
 
 
For the complete table of pain vs damage, see [[Health Difficulties]]
 
  
=== Thresholds ===
+
==Thresholds==
 
Pain creates moodlets of different values at 4 stages depending on pain severity.
 
Pain creates moodlets of different values at 4 stages depending on pain severity.
 
 
{| {{STDT|sortable c_10 text-center}}
 
{| {{STDT|sortable c_10 text-center}}
! Level !! Required Pain % !! Mood Penalty<br>(Default) !! Mood Buff<br>([[Masochist]]) !! Mood Buff<br>([[Ideoligion#Pain|Pain:Idealized]]{{IdeologyIcon}})
+
! Level !! Required Pain % !! Mood Penalty !! Stat Penalty
|-
 
! Minor
 
|  1% || {{--|5}} || {{+|5}} || {{+|3}}
 
 
|-
 
|-
! Serious
+
| Minor          ||  1% || -5 || ?
| 15% || {{--|10}} || {{+|10}} || {{+|5}}
 
 
|-
 
|-
! Intense
+
| Serious        || 15% || -5 || ?
| 40% || {{--|15}} || {{+|15}} || {{+|7}}
 
 
|-
 
|-
! Mind-shattering
+
| Intense        || 40% || -5 || ?
| 80% || {{--|20}} || {{+|20}} || {{+|9}}
 
 
|-
 
|-
|}
+
| Mind-shattering || 80% || -5 || ?
 
 
A standard pawn will go down upon reaching mind-shattering pain.<br>
 
Pain inflicts a [[consciousness]] penalty that scales with the pain percentage after exceeding 10%. It conforms to the following equation:
 
<code>IF Pain[%] <= 10% THEN -0% ELSE -{(Pain-0.1)/2.25}[%]</code> For example, 15% pain is 0.15 - 0.1 = 0.05 / 2.25 = 0.02 or 2% consciousness loss.
 
 
 
{| class="wikitable"
 
! Graph
 
 
|-
 
|-
| {{GraphChart|width=400|height=100|type=line| xAxisTitle = Pain (%) | yAxisTitle = Consciousness Penalty (%)|x=0,10, 100|y=0, 0, -40|xAxisMin = 0 |  xAxisMax = 100|  yAxisMin = -40 | yAxisMax = 0 |xGrid = |yGrid = }}
+
}}
|}
 
 
 
===  Factors ===
 
{{Stub|section=1|reason=Many other hediffs cause pain or change pain factors. Also injury mechanics. Also how is PainFactor applied? Is it exactly the same as a post factor for other capacities? Math section on final calculation is needed.}}
 
==== Base factors ====
 
Factors cause the game code to MULTIPLY pain X a number. Small numbers reduce pain a lot. Large numbers reduce pain a little.
 
 
 
* [[Painstopper]]: '''×0%'''
 
* [[Painless]] persona trait {{RoyaltyIcon}}: '''×0%'''
 
* [[Go-juice]]:
 
** High: '''×10%'''
 
** Withdrawal: '''×300%'''
 
* [[Psycasts#Painblock|Painblock]] psycast: {{RoyaltyIcon}} '''×10%'''
 
* [[Yayo]]:
 
** High: '''×50%'''
 
* [[Luciferium]]:
 
** High: '''×80%'''
 
* [[Psychite tea]]:
 
** High: '''×90%'''
 
* [[Beer]]: (See also [[#Offsets|Offsets]])
 
** Warm: '''×90%'''
 
** Tipsy: '''×80%'''
 
** Drunk: '''×50%'''
 
** Hammerred: '''×30%'''
 
** Blackout: '''×10%'''
 
* [[Genes#Psychic bonding|Psychic bond]]{{BiotechIcon}}:
 
** Psychic bond: '''×50%'''
 
* [[Reduced pain]]{{BiotechIcon}}: '''×50%'''
 
 
 
==== Offsets ====
 
Offsets cause the game code to ADD OR SUBTRACT a number from the pawn's pain. Small numbers are less effective at reducing pain than large numbers. However, if the pawn only has a small amount of pain, an equally small offset will be totally effective at removing all pain. Positive numbers add pain. Negative numbers reduce pain.
 
 
 
* [[Mindscrew]]: {{++|20%}}
 
* [[Sensory mechanites]]:
 
** Mild pain: {{++|20%}}
 
** Intense pain: {{++|60%}}
 
* [[Blood rot]]:
 
** Extreme: {{++|5%}}
 
* [[Fibrous mechanites]]:
 
** Mild pain: {{++|20%}}
 
** Intense pain: {{++|60%}}
 
* [[Muscle parasites]]: {{++|20%}}
 
* [[Gut worms]]: {{++|20%}}
 
* [[Malaria]]:
 
** Major: {{++|30%}}
 
** Extreme: {{++|30%}}
 
* [[Luciferium]]:
 
** Withdrawal: {{++|40%}}
 
* [[Beer]]: (See also [[#Factors|Factors]])
 
** Blackout: {{++|5%}}
 
* [[Smokeleaf joint|Stoned on smokeleaf]]: {{---|20%}}
 
* [[Torture crown]]:{{IdeologyIcon}} {{++|5%}}
 
* [[Tox gas]]:{{BiotechIcon}}
 
** Mild: {{++|10%}}
 
** Moderate: {{++|15%}}
 
** Severe: {{++|25%}}
 
* [[Hemogen]] craving:{{BiotechIcon}}
 
** Minor: {{++|5%}}
 
** Moderate: {{++|10%}}
 
** Major: {{++|15%}}
 
 
 
<noinclude>
 
 
 
== Version history ==
 
* [[Version/0.6.532|0.6.532]] -  Added. Pain level is tracked. A character in too much pain will become incapacitated.
 
* [[Version/0.10.785|0.10.785]] - Pain now creates unhappiness.
 
 
 
{{nav|stats|wide}}
 
</noinclude>
 

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

This page is a member of 2 hidden categories: