Difference between revisions of "Surgery Success Chance Factor"

From RimWorld Wiki
Jump to navigation Jump to search
(corrected information about the facility offset and the cleanliness multiplier)
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
| min value = 0
 
| min value = 0
 
| to string style = PercentZero
 
| to string style = PercentZero
| description = A multiplier to the chance that a [[surgery]] will succeed when performed here. [[Surgery Success Chance|Surgery success chance]]s 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.
}} This stat is applied to beds and other sleeping furniture.
+
}} This stat is applied to beds and other [[sleep furniture]].
  
== Factors ==
+
* Note that this stat is specific to the base '''Surgery Success Chance Factor''' of a given ''type'' of sleep furniture.
* Room [[cleanliness]]
 
* [[Light]]: ×0.75 at 0% light to ×1.00 at 50% light
 
* Enclosed room:
 
** Indoors: ×1
 
** Outdoors: ×0.85
 
* [[Quality]]:
 
** Awful: ×0.90
 
** Poor: ×0.95
 
** Normal: ×1.00
 
** Good: ×1.05
 
** Excellent: ×1.1
 
** Masterwork: ×1.15
 
** Legendary: ×1.3
 
  
== Examples ==  
+
* When placed in-world, the '''Surgery Success Chance Factor''' of a specific ''item'' of sleep furniture changes. It is additionally weighted by [[#Environmental factors|environmental factors]].
{{#ask: [[Surgery Success Chance Factor::+]]
+
 
| ?Surgery Success Chance Factor
+
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 "true" chance of a surgery succeeding, where this factor is one part of the equation, see [[Surgery]].
 +
 
 +
== 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.
 +
{{#ask:  
 +
  [[Category:Sleep furniture]]
 +
  |mainlabel=Sleep furniture type
 +
  |?Surgery Success Chance Factor=Surgery Success Chance Factor
 
}}
 
}}
 +
 +
=== Facility Offset ===
 +
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 !! Offset
 +
|-
 +
| [[Vitals monitor]] || {{+|0.05}}
 +
|}
 +
 +
=== Room Cleanliness Multiplier ===
 +
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|}}
 +
! Range                !! Formula
 +
|-
 +
| 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 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 ({{Bad|0.6}}).
 +
 +
=== Light Multiplier ===
 +
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}} is applied.
 +
 +
This is referred to as '''Multiplier for light''' within the '''Stats''' tab of the information page.
 +
 +
{| {{STDT|}}
 +
| '''''Multiplier for Light''''' = 0.75 + [[Environment#Light|Light Level]] × 0.5
 +
|}
 +
 +
=== 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 {{Bad|0.85}} is applied to the resulting chance of surgery success.
 +
{| {{STDT|}}
 +
! Environment Type !! Multiplier
 +
|-
 +
| Indoors || '''1'''
 +
|-
 +
| Outdoors || {{Bad|0.85}}
 +
|}
 +
 +
=== 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.
 +
 +
{| {{STDT|}}
 +
! Quality !! Multiplier
 +
|-
 +
| Awful || {{Bad|0.9}}
 +
|-
 +
| Poor || {{Bad|0.95}}
 +
|-
 +
| Normal || '''1'''
 +
|-
 +
| Good || {{Good|1.05}}
 +
|-
 +
| Excellent || {{Good|1.1}}
 +
|-
 +
| Masterwork || {{Good|1.15}}
 +
|-
 +
| Legendary || {{Good|1.3}}
 +
|}

Latest revision as of 10:56, 12 November 2023

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