Sleep Gas Generation: Difference between revisions

256 bytes removed ,  22:22, 3 October 2020
no edit summary
(updated for mutation patch)
No edit summary
Line 12: Line 12:
| realitydistort = no
| realitydistort = no
}}
}}
{{name}} is a physical mutation generates [[sleep gas]], which can cause other creatures to fall [[asleep]]. Creatures that have this mutation are also themselves immune to all sleep gas, including sleep gas generated by other hostile creatures. This immunity does not extend beyond gas (it won't prevent other forms of sleep).
{{name}} is a physical mutation generates {{favilink|sleep gas}}, which can cause other creatures to fall [[asleep]]. Creatures that have this mutation are also themselves immune to all sleep gas, including sleep gas generated by other hostile creatures. This immunity does not extend beyond gas (it won't prevent other forms of sleep).


In order to be affected by sleep gas, a creature must [[Respiration|respire]]. [[Robots]] and holograms do not respire and cannot be affected by sleep gas.
In order to be affected by sleep gas, a creature must [[Respiration|respire]]. Robots and holograms do not respire and cannot be affected by sleep gas.


Generating gas must be toggled on in the abilities menu. Upon choosing to generate gas, at the end of each turn, {{favilink|sleep gas}} will generate in all of the open-air tiles surrounding the generator, excluding cells with [[occluding]] objects such as walls or closed doors. Once toggled on, the ability cannot be turned off until it has finished generating gas for the full number of turns based on the current mutation's level. The density of the gas in each cell is <math>\frac{800}{\text{total cells}}</math>. By default, this would mean a minimum density of 100 sleep gas for each of the surrounding 8 squares. Occluding squares will cause the remaining empty cells to have higher concentrated density of sleep gas, with a maximum density of 800 if only one cell is non occluding.
Generating gas must be toggled on in the abilities menu. Upon choosing to generate gas, at the end of each turn, {{favilink|sleep gas}} will generate in all of the open-air tiles surrounding the generator, excluding cells with [[occluding]] objects such as walls or closed doors. Once toggled on, the ability cannot be turned off until it has finished generating gas for the full number of turns based on the current mutation's level. The density of the gas in each cell is <math>\frac{800}{\text{total cells}}</math>. By default, this would mean a minimum density of 100 sleep gas for each of the surrounding 8 squares. Occluding squares will cause the remaining empty cells to have higher concentrated density of sleep gas, with a maximum density of 800 if only one cell is non occluding.


Any creature that is not immune to the effects of sleep gas that enters these gas clouds must make a [[Toughness]] [[save]] of <math>5 + \text{Mutation Level} + \frac{\text{Density}}{10}</math>. Items such as the {{favilink|vinewood sap mask}} or {{favilink|gas mask}} provide a bonus to this Toughness save and reduce the effective density of gas for purposes of the calculation. If the creature fails this save, they will fall asleep for '''{{Dice tooltip|4d6}} + Mutation Level''' rounds.<ref><code>XRL.World.Parts.GasSleep</code></ref>
Creatures caught in {{favilink|sleep gas}} must succeed at a [[Save|Toughness save]] or fall asleep for a certain number of rounds. The difficulty of the save and number of rounds of sleep are determined by the strength of the sleep gas (which is equal to mutation level).


==Advancement Table==
==Advancement Table==
Due to the difference in save depending on the gas density, three  values will be given: the minimum and maximum values assuming that all 8 surrounding cells are non occluding or all but 1 cell is non occluding respectively, and a base value before the density is calculated. This also assumes that the gas in one cell was generated for only one turn. If gas is generated for multiple turns, the density can increase to significantly higher levels.
This table shows only the mutation duration (the number of rounds during which the user will release sleep gas).
{|class = "wikitable"
 
!Mutation Level
'''For details about sleep gas Toughness saves and the duration of sleep, refer to the {{favilink|sleep gas}} article.'''
!Rounds
 
![[Toughness]] Difficulty Save
<div style="display:flex;flex-wrap:wrap;">
!Turns Asleep
 
<div style="margin-right: 2.5em;">
 
{| class="wikitable"
! Mutation Level
! Active Duration
|-
|-
| 1
| 1
| 3 rounds
|-
| 2
| 4 rounds
|-
| 3
| 3
|16-86 (Base: 6)
| 5 rounds
|{{Dice tooltip|4d6+1}}
|-
|-
| 2
| 4
| 4
|17-87 (Base: 7)
| 6 rounds
|{{Dice tooltip|4d6+2}}
|-
|-
| 3
| 5
| 5
|18-88 (Base: 8)
| 7 rounds
|{{Dice tooltip|4d6+3}}
|-
|-
| 4
| 6
| 6
|19-89 (Base: 9)
| 8 rounds
|{{Dice tooltip|4d6+4}}
|-
|-
| 5
| 7
| 7
|20-90 (Base: 10)
| 9 rounds
|{{Dice tooltip|4d6+5}}
|-
|-
| 6
| 8
| 8
|21-91 (Base: 11)
| 10 rounds
|{{Dice tooltip|4d6+6}}
|-
|-
| 7
| 9
| 9
|22-92 (Base: 12)
| 11 rounds
|{{Dice tooltip|4d6+7}}
|-
|-
| 8
| 10
| 10
|23-93 (Base: 13)
| 12 rounds
|{{Dice tooltip|4d6+8}}
|-
|-
| 9
| 11
| 11
|24-94 (Base: 14)
| 13 rounds
|{{Dice tooltip|4d6+9}}
|-
|-
| 10
| 12
| 12
|25-95 (Base: 15)
| 14 rounds
|{{Dice tooltip|4d6+10}}
|-
| 13
| 15 rounds
|-
| 14
| 16 rounds
|-
| 15
| 17 rounds
|}
 
</div>
 
<div style="margin-right: 2.5em;">
 
{| class="wikitable"
! Mutation Level
! Active Duration
|-
| 16
| 18 rounds
|-
| 17
| 19 rounds
|-
| 18
| 20 rounds
|-
| 19
| 21 rounds
|-
| 20
| 22 rounds
|-
| 21
| 23 rounds
|-
| 22
| 24 rounds
|-
| 23
| 25 rounds
|-
| 24
| 26 rounds
|-
| 25
| 27 rounds
|-
| 26
| 28 rounds
|-
| 27
| 29 rounds
|-
| 28
| 30 rounds
|-
| 29
| 31 rounds
|-
| 30
| 32 rounds
|}
|}
</div>
</div>
=== Formulas ===
=== Formulas ===
The following formula is used to determine duration.{{Code Reference|namespace=XRL.World.Parts.Mutation|class=SleepGasGeneration}}
The following formula is used to determine duration.{{Code Reference|namespace=XRL.World.Parts.Mutation|class=SleepGasGeneration}}