Skip to content

Instantly share code, notes, and snippets.

@egocarib
Created October 6, 2021 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egocarib/6ca2a8fdc3be827a04c5f51d03af36b2 to your computer and use it in GitHub Desktop.
Save egocarib/6ca2a8fdc3be827a04c5f51d03af36b2 to your computer and use it in GitHub Desktop.
Draft wiki pages for 'Plasma' and 'Coated in plasma'
{{Effect
| title = {{qud shader|coated in plasma|coated in plasma}}
| desc = -100 heat resistance
-100 cold resistance
-100 electric resistance
Temperature does not passively return to ambient temperature
Patting or rolling firefighting actions are 25% as effective
Removes liquid coatings
| id = CoatedInPlasma
| type = 110000000000000000000100000
| gameversion = 2.0.202.84
}}
{{name|caps}} is an effect applied to anything that comes in contact with {{favilink|plasma}}.
The only direct and immediate effect of being coated in plasma is that all [[covered in liquid|liquid coverings]] are immediately removed from the creature or object.{{Code Reference|namespace=XRL.World.Effects|class=CoatedInPlasma|name=CoatedInPlasma}}
However, this effect also applies a '''-100''' penalty to heat, cold, and electric [[elemental resistance]]s, and makes it impossible for the coated creature or object to naturally return to ambient temperature for the duration of the effect.<ref name="CoatedInPlasma" /> This can make a creature or object extremely susceptible to temperature effects that can start them on fire or freeze them, and also makes them extremely susceptible to heat, cold, or electric damage.
== Duration ==
The duration of the coated in plasma effect is dependent on the density of plasma that the object or creature came into contact with.
The effect lasts for a random number of turns between '''Density * 2 / 5''' and '''Density * 3 / 5'''.<ref name="CoatedInPlasma" />
{| class="wikitable" style="text-align:center"
! Plasma Density
! Duration of "Covered in Plasma"
! Example Source
|-
| 20
| {{dice tooltip|8-12}} turns
| {{favilink|spaser pistol}} projectile, upon hitting target{{Code Reference|class=EmitGasOnHit|name=EmitGasOnHit}}<ref name="ObjectBlueprints"><code>ObjectBlueprints.xml</code></ref>
|-
| 40
| {{dice tooltip|16-24}} turns
| {{favilink|plasma grenade mk I}}{{Code Reference|class=GasGrenade|name=GasGrenade}}<ref name="ObjectBlueprints" />
|-
| 80
| {{dice tooltip|32-48}} turns
| {{favilink|spaser rifle}}, projectile, upon hitting target<ref name="EmitGasOnHit" /><ref name="ObjectBlueprints" />
|-
| 120
| {{dice tooltip|48-62}} turns
| {{favilink|plasma grenade mk III}}<ref name="GasGrenade" /><ref name="ObjectBlueprints" />
|-
| 500
| {{dice tooltip|200-300}} turns
| {{favilink|plasma jelly}}'s plasma cloud, after about 5 turns of releasing plasma{{Code Reference|namespace=XRL.World.Parts.Mutation|class=GasGeneration}}
|-
| 1000
| {{dice tooltip|400-600}} turns
| {{favilink|plasma jelly}}, plasma cloud released on death<ref name="ObjectBlueprints" />
|}
== Sources of This Effect ==
Any source of {{favilink|plasma}} can potentially cause the {{name}} effect.
== Strategies ==
{{Opinion}}
* To avoid this effect, try to keep your distance from any clouds of plasma gas. If you do become {{name}}, it is advisable to run and seek cover in a safe place until the effect ends.
{{references|2.0.202.84}}
{{Effect Navbox}}
{{Aliases|ids=AcidGas80, AcidGas200, AcidGas1000}}<!-- START QBE: Autogenerated section - please leave this marker. See the [[QBE]] page for more information. -->
{{Item
| title = {{Qud text|plasma}}
| image = plasma.png
| gif = plasma animated.gif
| inhaled = no
| seeping = yes
| id = Plasma
| colorstr = &amp;g^Y
| tilecolors = g
| renderstr = ▓
| inheritingfrom = Gas
| desc = Hot plasma.
| categories = Gases
| gameversion = 2.0.202.84
}}
<!-- END QBE -->
Plasma is a damaging [[gas]] that can seep through walls and other occluding objects, often destroying them in the process.
Mechanically, it is very similar to {{favilink|corrosive gas}}, except that:
* Plasma does 20 times more damage to creatures and robots.{{Code Reference|class=GasPlasma|name=GasPlasma}}
* Plasma can leave creatures it comes in contact with [[covered in plasma]], which causes an additional debuff.{{Code Reference|namespace=XRL.World.Effects|class=CoatedInPlasma|name=CoatedInPlasma}}
== Sources ==
Common sources of {{name}}, with their level and density, include:{{Code Reference|namespace=XRL.World.Parts|class=Gas}}
{| class="wikitable"
! Source
! Gas Level
! Gas Density
! Reference
|-
| [[Plasma Gas Generation]]<br>({{favilink|plasma jelly}} has this at level 10)
| Mutation Level
| 800 per turn, divided evenly into adjacent squares
| {{Code Reference|namespace=XRL.World.Parts.Mutation|class=PlasmaGasGeneration}}
|-
| {{favilink|plasma gas grenade mk I}}
| 1
| 40
| <ref name="GasGrenade"><code>XRL.World.Parts.GasGrenade</code></ref><ref name="ObjectBlueprints"><code>ObjectBlueprints.xml</code></ref>
|-
| {{favilink|plasma gas grenade mk II}}
| 1
| 80
| <ref name="GasGrenade" /><ref name="ObjectBlueprints" />
|-
| {{favilink|plasma gas grenade mk III}}
| 1
| 120
| <ref name="GasGrenade" /><ref name="ObjectBlueprints" />
|-
| {{favilink|plasma jelly}} (on death)
| 1
| 1000
| <ref name="Corpse"><code>XRL.World.Parts.Corpse</code></ref><ref name="ObjectBlueprints" />
|-
| {{favilink|spaser pistol}} (on projectile hit)
| 1
| 20 in cell hit, 10 in all adjacent cells
| {{Code Reference|class=EmitGasOnHit|name=EmitGasOnHit}}<ref name="ObjectBlueprints" />
|-
| {{favilink|spaser rifle}} (on projectile hit)
| 1
| 80 in cell hit, 20 in all adjacent cells
| <ref name="EmitGasOnHit" /><ref name="ObjectBlueprints" />
|}
== Damage ==
The damage done by {{name}} depends on the target:{{Code Reference|class=GasDamaging|name=GasDamaging}}
* {{name|caps}} deals damage to creatures and robots.
* {{name|caps}} deals significantly increased damage to:
** Walls, doors, furniture, chests, statues, and similar objects.
** {{favilink|brooding jadepuff|brooding puffs}}.
* {{name|caps}} deals '''''no''''' damage to anything with the <code>Item</code> tag. This includes all weapons, armor, equipment, scrap, cybernetics, energy cells, garbage, food, trade goods, corpses, books, water containers, urns and vases, quest items, and most other similar items a character might carry around in their inventory. Furniture items, such as {{Favilink|chest|plural}} or {{Favilink|weapon rack|plural}} are affected, but any items within will drop to the ground undamaged.
Note that, even though plasma does not ''directly'' damage items, it does apply the [[covered in plasma]] effect to them. This can make those items more susceptible to other forms of damage, such as catching on fire.
The following damage formulas are used to calculate {{name}} damage:<ref name="GasDamaging" />
{| class="wikitable"
| style="border-top:1px solid transparent;border-left:1px solid transparent" |
! Formula
! Notes
|-
! Creatures and Robots
| {{simple formula | ( Density * GasLevel ) / 10 }}
| (rounded up)
|-
! Walls and Similar Objects
| {{simple formula | ( 0.75 * GasLevel + 0.25 ) * Density }}
| (rounded up)
|}
In practice, gas damage is highly variable due to a significant amount of randomization involved in gas behavior.
Gas is constantly moving between cells, dissipating over time, merging with other gas, and being affected by random calculations in the game engine. Its density, which is the main predictor of damage, is always changing.
The density of {{name}} can get much higher than 100 with the [[Plasma Gas Generation]] mutation, which is the signature mutation of a {{favilink|plasma jelly}}. With that mutation, a creature releases 100 density units of gas into the cells around them ''each turn'', and can continuously release gas for many turns depending on mutation level. This can result in very high density gas if the gas is released into a small area.
The following table indicates how much damage {{name}} of a certain level will do per round, depending on gas level and density. The table includes only Gas Levels 1 and 10, since other gas levels are not commonly found in game.
<div style="display:flex;flex-wrap:wrap;">
<div style="margin-right: 2.5em;">
{| class="wikitable"
! rowspan="2" | Gas Level
! rowspan="2" | Density
! colspan="2" | Gas damage per round
|-
!creatures / robots
!walls / objects
|-
! rowspan="12" | 1
|-
| 10
| 1
| 10
|-
| 20
| 2
| 20
|-
| 40
| 4
| 40
|-
| 60
| 6
| 60
|-
| 80
| 8
| 80
|-
| 100
| 10
| 100
|-
| 120
| 12
| 120
|-
| 180
| 18
| 180
|-
| 240
| 24
| 240
|-
| 300
| 30
| 300
|-
| 1000
| 100
| 1000
|}
</div>
<div style="margin-right: 2.5em;">
{| class="wikitable"
! rowspan="2" | Gas Level
! rowspan="2" | Density
! colspan="2" | Gas damage per round
|-
!creatures / robots
!walls / objects
|-
! rowspan="14" | 10
| 50
| 50
| 388
|-
| 100
| 100
| 775
|-
| 200
| 200
| 1550
|-
| 300
| 300
| 2325
|-
| 400
| 400
| 3100
|-
| 500
| 500
| 3875
|-
| 600
| 600
| 4650
|-
| 700
| 700
| 5425
|-
| 800
| 800
| 6200
|-
| 900
| 900
| 6975
|-
| 1000
| 1000
| 7750
|-
| 1200
| 1200
| 9300
|-
| 1400
| 1400
| 10850
|-
| 1600
| 1600
| 12400
|}
</div>
</div>
''Looking for a more extensive damage breakdown? You can refer to the [[Corrosive_gas#Damage|corrosive gas damage table]] - the numbers are the same except that you'll need to multiply the "creatures/robots" damage shown on the corrosive gas page times 20 to get the plasma damage for the same level and density.''
{{references|2.0.202.84}}
{{Gas Navbox}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment