Difference between revisions of "Surgery Success Chance Factor"

From RimWorld Wiki
Jump to navigation Jump to search
m
m (Stat Category)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
| to string style = PercentZero
 
| to string style = PercentZero
 
| description = A multiplier to the chance that a surgery will succeed when performed here. Surgery success chances are also affected by many other factors, including the surgeon's ability and medicine used.
 
| description = A multiplier to the chance that a surgery will succeed when performed here. Surgery success chances are also affected by many other factors, including the surgeon's ability and medicine used.
 +
| category = Building
 
}} This stat is applied to beds and other [[sleep furniture]].
 
}} This stat is applied to beds and other [[sleep furniture]].
  
Line 12: Line 13:
 
In other words, "Surgery Success Chance Factor" is the stat of the ''bed item'' and its location.  
 
In other words, "Surgery Success Chance Factor" is the stat of the ''bed item'' and its location.  
 
* For the surgery success stat of a specific ''[[colonist]]'', see [[Medical Surgery Success Chance]].  
 
* For the surgery success stat of a specific ''[[colonist]]'', see [[Medical Surgery Success Chance]].  
* For the "true" chance of a surgery succeeding, where this factor is one part of the equation, see [[Doctoring#Surgery|Surgery]].
+
* For the "true" chance of a surgery succeeding, where this factor is one part of the equation, see [[Surgery]].
  
== Stats List ==
+
== Formula ==
 +
When placed in-world, the specific ''item'' of [[Sleep furniture]] has its '''Surgery Success Chance Factor''' stat adjusted based on its environment.
 +
 
 +
This is calculated as:
 +
 
 +
{| {{STDT|}}
 +
| '''Surgery Success Chance Factor<sub>''item''</sub>''' = ([[#Base stat|Base stat]]<sub>''type''</sub> + [[#Facility Offset|Facility Offset]]) × [[#Room Cleanliness Multiplier|Room Cleanliness Multiplier]] × [[#Light Multiplier|Light Multiplier]] × [[#Outdoors Multiplier|Outdoors Multiplier]] × [[#Quality Multiplier|Quality Multiplier]]
 +
|}
 +
 
 +
=== Base stat ===
 
Every type of [[Sleep furniture|sleep furniture]]'s '''Surgery Success Chance Factor''' has a base value stat assigned as follows.
 
Every type of [[Sleep furniture|sleep furniture]]'s '''Surgery Success Chance Factor''' has a base value stat assigned as follows.
 
{{#ask:  
 
{{#ask:  
Line 22: Line 32:
 
}}
 
}}
  
== Environmental Factors ==
+
=== Facility Offset ===
When placed in-world, the specific ''item'' of [[Sleep furniture]] has its '''Surgery Success Chance Factor''' stat adjusted based on its environment.  
+
In addition, ''facilities'' placed adjacent to the head of the item of sleep furniture can adjust the stat of the placed item.
  
This is calculated as:
+
The result of these additional factors are displayed under the '''Facilities''' heading within the '''Stats''' tab of the information page.
  
 
{| {{STDT|}}
 
{| {{STDT|}}
 +
! Facility Type !! Offset
 
|-
 
|-
| '''Surgery Success Chance Factor<sub>''item''</sub>''' = [[#Surgery Success Chance Factor|Surgery Success Chance Factor]]<sub>''type''</sub> × [[#Room Cleanliness Multiplier|Room Cleanliness Multiplier]] × [[#Light Multiplier|Light Multiplier]] × [[#Outdoors Multiplier|Outdoors Multiplier]] × [[#Quality Multiplier|Quality Multiplier]] × Product of [[#Facilities Multipliers|Facilities Multipliers]]
+
| [[Vitals monitor]] || {{+|0.05}}
|-
 
 
|}
 
|}
  
 
=== Room Cleanliness Multiplier ===
 
=== Room Cleanliness Multiplier ===
The room cleanliness factor for performing surgery is a determined by the value displayed on the [[Rooms#Cleanliness|room's cleanliness]].
+
The room cleanliness factor for performing surgery is a determined by the value displayed on the [[Rooms#Cleanliness|room's cleanliness]] by the following curve:
  
 +
{| class="wikitable" style="text-align:right"
 +
! Room<br/>cleanliness !! Room<br/>Cleanliness<br/>Multiplier !! Graph
 +
|-
 +
| -5 || 0.6
 +
| rowspan="3" | {{Graph:Chart| width = 200 | height = 200 | type = line | xAxisTitle = Room cleanliness | yAxisTitle = Room Cleanliness Multiplier | x = -5, 0, 5 | y =  0.6, 1, 1.15 | xAxisMin = -5 | yAxisMin = 0.6 | yAxisMax = 1.15}}
 +
|-
 +
| 0 || 1
 +
|-
 +
| 5 || 1.15
 +
|}
 +
 +
This can be translated into the following formulas:
 
{| {{STDT|}}
 
{| {{STDT|}}
 +
! Range                !! Formula
 
|-
 
|-
| '''''Room Cleanliness Factor''''' = 1.05 + [[Rooms#Cleanliness|Room cleanliness]] × 0.09
+
| Room cleanliness < 0 || '''''Room Cleanliness Multiplier''''' = 1 + [[Rooms#Cleanliness|Room cleanliness]] × 0.08
 
|-
 
|-
 +
| Room cleanliness > 0 || '''''Room Cleanliness Multiplier''''' = 1 + [[Rooms#Cleanliness|Room cleanliness]] × 0.03
 
|}
 
|}
  
The resulting value is limited to a minimum of {{bad|0.6}} and a maximum of {{good|1.5}}.
+
The value is limited to a minimum of {{Bad|0.6}} for -5 cleanliness and a theoretical maximum of {{Good|1.15}} for 5 cleanliness, which is practical limited to {{Good| {{#expr:1+ {{Q|Sterile tile|Cleanliness}}*0.03}} }} by the highest available cleanliness of {{Q|Sterile tile|Cleanliness}} of the [[sterile tile]].
  
If the surgery is performed outside (i.e. not in a room at all), the cleanliness factor is treated as the minimum.
+
If the surgery is performed outside (i.e. not in a room at all), the cleanliness factor is treated as the minimum ({{Bad|0.6}}).
  
 
=== Light Multiplier ===
 
=== Light Multiplier ===
 
Extremely low levels of [[Environment#Light|light]] negatively affect the resulting value.
 
Extremely low levels of [[Environment#Light|light]] negatively affect the resulting value.
  
In complete darkness, this can be as little as {{bad|0.75}}. At 50% light level and above, a factor of {{good|1.0}} is applied.
+
In complete darkness, this can be as little as {{Bad|0.75}}. At 50% light level and above, a factor of {{Good|1}} is applied.
  
 
This is referred to as '''Multiplier for light''' within the '''Stats''' tab of the information page.
 
This is referred to as '''Multiplier for light''' within the '''Stats''' tab of the information page.
  
 
{| {{STDT|}}
 
{| {{STDT|}}
|-
 
 
| '''''Multiplier for Light''''' = 0.75 + [[Environment#Light|Light Level]] × 0.5
 
| '''''Multiplier for Light''''' = 0.75 + [[Environment#Light|Light Level]] × 0.5
|-
 
 
|}
 
|}
  
 
=== Outdoors Multiplier ===
 
=== Outdoors Multiplier ===
If the item of sleep furniture is placed performed [[outdoors]] (i.e. there is no room of which the cleanliness may be assessed), an additional multiplier of 0.85 is applied to the resulting chance of surgery success.
+
If the item of sleep furniture is placed performed [[outdoors]] (i.e. there is no room of which the cleanliness may be assessed), an additional multiplier of {{Bad|0.85}} is applied to the resulting chance of surgery success.
 
{| {{STDT|}}
 
{| {{STDT|}}
|-
 
 
! Environment Type !! Multiplier
 
! Environment Type !! Multiplier
 
|-
 
|-
| Indoors || 1.00
+
| Indoors || '''1'''
 
|-
 
|-
| Outdoors || 0.85
+
| Outdoors || {{Bad|0.85}}
 
|}
 
|}
  
=== Quality Multiplier ===
+
=== Quality Factor ===
 
A multiplier based on the [[quality]] of the specific item is applied. This is referred to as the '''Quality Multiplier''' within the '''Stats''' tab of the information page.
 
A multiplier based on the [[quality]] of the specific item is applied. This is referred to as the '''Quality Multiplier''' within the '''Stats''' tab of the information page.
  
 
{| {{STDT|}}
 
{| {{STDT|}}
|-
 
 
! Quality !! Multiplier
 
! Quality !! Multiplier
 
|-
 
|-
| Awful || 0.90
+
| Awful || {{Bad|0.9}}
|-
 
| Poor || 0.95
 
|-
 
| Normal || 1.00
 
 
|-
 
|-
| Good || 1.05
+
| Poor || {{Bad|0.95}}
 
|-
 
|-
| Excellent || 1.10
+
| Normal || '''1'''
 
|-
 
|-
| Masterwork || 1.15
+
| Good || {{Good|1.05}}
|-
 
| Legendary || 1.30
 
|}
 
 
 
=== Facilities Multipliers ===
 
In addition, ''facilities'' placed adjacent to the head of the item of sleep furniture can adjust the stat of the placed item.
 
 
 
The result of these additional factors are displayed under the '''Facilities''' heading within the '''Stats''' tab of the information page.
 
 
 
{| {{STDT|}}
 
 
|-
 
|-
! Facility Type !! Multiplier
+
| Excellent || {{Good|1.1}}
 
|-
 
|-
| [[Vitals monitor]] || 1.05
+
| Masterwork || {{Good|1.15}}
 
|-
 
|-
 +
| Legendary || {{Good|1.3}}
 
|}
 
|}

Latest revision as of 19:49, 6 September 2024

Surgery Success Chance Factor is a stat: A multiplier to the chance that a surgery will succeed when performed here. Surgery success chances are also affected by many other factors, including the surgeon's ability and medicine used. Its minimum allowed value is 0%. Its default value is 100%. This stat is applied to beds and other sleep furniture.

  • Note that this stat is specific to the base Surgery Success Chance Factor of a given type of sleep furniture.
  • When placed in-world, the Surgery Success Chance Factor of a specific item of sleep furniture changes. It is additionally weighted by environmental factors.

In other words, "Surgery Success Chance Factor" is the stat of the bed item and its location.

Formula[edit]

When placed in-world, the specific item of Sleep furniture has its Surgery Success Chance Factor stat adjusted based on its environment.

This is calculated as:

Surgery Success Chance Factoritem = (Base stattype + Facility Offset) × Room Cleanliness Multiplier × Light Multiplier × Outdoors Multiplier × Quality Multiplier

Base stat[edit]

Every type of sleep furniture's Surgery Success Chance Factor has a base value stat assigned as follows.

Sleep furniture typeSurgery Success Chance Factor
Ancient bed0.65
Animal bed1
Animal sleeping box1
Animal sleeping spot0.7
Bed1
Bedroll1
Double bed1
Double bedroll1
Double sleeping spot0.7
Hospital bed1.1
Royal bed1
Slab bed1
Slab double bed1
Sleeping spot0.7

Facility Offset[edit]

In addition, facilities placed adjacent to the head of the item of sleep furniture can adjust the stat of the placed item.

The result of these additional factors are displayed under the Facilities heading within the Stats tab of the information page.

Facility Type Offset
Vitals monitor +0.05

Room Cleanliness Multiplier[edit]

The room cleanliness factor for performing surgery is a determined by the value displayed on the room's cleanliness by the following curve:

Room
cleanliness
Room
Cleanliness
Multiplier
Graph
-5 0.6
0 1
5 1.15

This can be translated into the following formulas:

Range Formula
Room cleanliness < 0 Room Cleanliness Multiplier = 1 + Room cleanliness × 0.08
Room cleanliness > 0 Room Cleanliness Multiplier = 1 + Room cleanliness × 0.03

The value is limited to a minimum of 0.6 for -5 cleanliness and a theoretical maximum of 1.15 for 5 cleanliness, which is practical limited to 1.018 by the highest available cleanliness of 0.6 of the sterile tile.

If the surgery is performed outside (i.e. not in a room at all), the cleanliness factor is treated as the minimum (0.6).

Light Multiplier[edit]

Extremely low levels of light negatively affect the resulting value.

In complete darkness, this can be as little as 0.75. At 50% light level and above, a factor of 1 is applied.

This is referred to as Multiplier for light within the Stats tab of the information page.

Multiplier for Light = 0.75 + Light Level × 0.5

Outdoors Multiplier[edit]

If the item of sleep furniture is placed performed outdoors (i.e. there is no room of which the cleanliness may be assessed), an additional multiplier of 0.85 is applied to the resulting chance of surgery success.

Environment Type Multiplier
Indoors 1
Outdoors 0.85

Quality Factor[edit]

A multiplier based on the quality of the specific item is applied. This is referred to as the Quality Multiplier within the Stats tab of the information page.

Quality Multiplier
Awful 0.9
Poor 0.95
Normal 1
Good 1.05
Excellent 1.1
Masterwork 1.15
Legendary 1.3