Difference between revisions of "Immunity Gain Speed"

From RimWorld Wiki
Jump to navigation Jump to search
(add new red link Death as important topic)
(Corrected, expanded and clarified)
Line 1: Line 1:
{{Rewrite|reason=Cleanup needed}}{{Stat
+
{{Stat
 
| Default Base Value = 1.0
 
| Default Base Value = 1.0
 
| to string style = PercentZero
 
| to string style = PercentZero
 
| description = The speed at which this character gains immunity to [[disease]]s. If this is too slow, the character will [[Death|die]] from the disease before developing immunity.
 
| description = The speed at which this character gains immunity to [[disease]]s. If this is too slow, the character will [[Death|die]] from the disease before developing immunity.
}} Base value is 100%.
+
}} Base value is 100%. The value shown in-game is rounded to the nearest whole percent, while exact value is used in calculations.
  
In addition to this stat, real immunity gain is affected by the medical tend quality, and each infection has its own InfectionLuck factor which adjusts the final gain by 80% (Bad luck) to 120% (Good luck).
+
While this stat can be seen in-game, the '''actual immunity gain speed''', measured in immunity gain per [[Time|day]], is hidden. It is calculated as a product of:
 +
* Base immunity gain speed for the particular disease. For example, 23.88% per day for human Flu.
 +
* InfectionLuck, a pseudorandom factor ranging from 80% (Bad luck) to 120% (Good luck). It is calculated independently for each disease instance (when multiple pawns ara affected by a disease outbreak, each of them gets their own disease instance). Wound infections in different organs of the same pawn are different instances, but only InfectionLuck of the oldest active infection comes into play (and only one infection immunity develops in organism, opposing all infection instances). ''Technical details: InfectionLuck is not stored in save file. Instead, it is calculated as a pseudorandom value depending on the world's seed (seedString) and disease's hediff ID (loadID). For example, it is ≈81.7511% for seed InfectionLuck and ID 1947.''
 +
* Immunity Gain Speed stat.
  
==Factors==
+
Immunity gain speed is '''not''' affected by medical tend quality.
Immunity gain speed is determined by many factors multiplicatively.
+
 
 +
==Stat factors==
 +
Immunity Gain Speed stat is determined by many factors multiplicatively.
  
 
===Capacities===
 
===Capacities===
Line 30: Line 35:
  
 
In Bed:
 
In Bed:
* 100%: When not resting; when resting on the floor or ground or [[sleeping spot]].
+
* 100%: When not resting/sleeping or when resting/sleeping on the floor, ground or [[sleeping spot]].
* 105%: When resting in an [[animal sleeping box]].
+
* 105%: When resting/sleeping in an [[animal sleeping box]].
* 107%: When resting in an [[animal bed]], single [[bed]], [[double bed]] or [[Royal bed]].
+
* 107%: When resting/sleeping in an [[animal bed]], single [[bed]], [[double bed]] or [[Royal bed]].
* 111%: When resting in a [[hospital bed]].
+
* 111%: When resting/sleeping in a [[hospital bed]].
* Note that quality of the bed only influences the [[Rest Effectiveness|rest effectiveness]], not the immunity gain speed.
+
* 113%: When resting/sleeping in a hospital bed with attached [[Vitals monitor]].
* Attaching a [[Vitals monitor]] to a bed increases that value by 2% additively, so 113% when attached to a [[Hospital bed]], 109% for any other bed that's set to medical. A vitals monitor can be attached to up to 8 adjacent beds, but only one vitals monitor can be attached per bed. The effects of multiple vitals monitors do not stack.
+
''Note that quality of the bed only influences the [[Rest Effectiveness|rest effectiveness]], not the immunity gain speed.''
  
 
Resting:
 
Resting:
* 100%: Not resting
+
* 100%: Not resting. Also, when [[downed]], despite lying.
* 110%: Resting (including sleeping)
+
* 110%: Resting, sleeping or [[Recreation#Activities_table|skygazing]] (cloudwatching, stargazing, etc).
  
 
===Age===
 
===Age===

Revision as of 19:59, 22 October 2022

Immunity Gain Speed is a stat: The speed at which this character gains immunity to diseases. If this is too slow, the character will die from the disease before developing immunity. Base value is 100%. The value shown in-game is rounded to the nearest whole percent, while exact value is used in calculations.

While this stat can be seen in-game, the actual immunity gain speed, measured in immunity gain per day, is hidden. It is calculated as a product of:

  • Base immunity gain speed for the particular disease. For example, 23.88% per day for human Flu.
  • InfectionLuck, a pseudorandom factor ranging from 80% (Bad luck) to 120% (Good luck). It is calculated independently for each disease instance (when multiple pawns ara affected by a disease outbreak, each of them gets their own disease instance). Wound infections in different organs of the same pawn are different instances, but only InfectionLuck of the oldest active infection comes into play (and only one infection immunity develops in organism, opposing all infection instances). Technical details: InfectionLuck is not stored in save file. Instead, it is calculated as a pseudorandom value depending on the world's seed (seedString) and disease's hediff ID (loadID). For example, it is ≈81.7511% for seed InfectionLuck and ID 1947.
  • Immunity Gain Speed stat.

Immunity gain speed is not affected by medical tend quality.

Stat factors

Immunity Gain Speed stat is determined by many factors multiplicatively.

Capacities

Blood Filtration: 50% importance. No allowed defect. No Max.

  • Reduced by Malaria
  • 100% unless reduced by damaged or missing Kidney (pawn has two, at 50% each)
  • 170% with Luciferium

Saturation

Hunger/Food:

  • 100%: Fed or Hungry
  • 90%: Urgently Hungry (corresponds to Ravenously Hungry)
  • 70%: Starving (corresponds to Malnourished)

Rest

Rest need:

  • 100%: Rested
  • 96%: Tired (corresponds to Drowsy thought)
  • 92%: Very tired (corresponds to Tired thought)
  • 80%: Exhausted (corresponds to Exhausted thought)

In Bed:

Note that quality of the bed only influences the rest effectiveness, not the immunity gain speed.

Resting:

  • 100%: Not resting. Also, when downed, despite lying.
  • 110%: Resting, sleeping or skygazing (cloudwatching, stargazing, etc).

Age

Generally, the multiplier for age follows a curve defined by 5 points.

Age Multiplier
0.65 * Life Expectancy 100%
0.80 * Life Expectancy 95%
1.00 * Life Expectancy 90%
1.20 * Life Expectancy 80%
1.50 * Life Expectancy 50%

As life expectancy is 80 for Humans, the following are approximate values for them.

Age Immunity Gain Speed
<54 100%
54 99%
56 98%
59 97%
61 96%
63 95%
66 94%
69 93%
72 92%
76 91%
79 90%
81 89%
83 88%
85 87%
86 86%
88 85%
89 84%
91 83%
93 82%
94 81%
96 80%
97 79%
98 78%
99 76%
100 75%

Past age 100, it continues to gradually decrease until it hits 50% at age 120 and stays at 50% thereafter.

Misc

Version history