Difference between revisions of "Magic contamination"

From CrawlWiki
Jump to: navigation, search
(Cleaning up; I think this is up to date now.)
m
 
(43 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{version016}}
+
{{version029}}
'''Magic contamination''' is a potential side effect of powerful magic, divine [[wrath]] or favour, or the incompetent use of magic.
+
'''Magic contamination''' is a dangerous condition caused by miscasts and some magical effects.
  
 
==Overview==
 
==Overview==
Various activities cause harmful magical energies to accumulate in your body. A small amount of magical contamination (a dark grey "Glow" status) is mostly harmless, and will dissipate over time without any further effect. Larger amounts (5+ points) of accumulated magic contamination (a yellow, red, or dark red "Glow" status) will make you start to glow with magical energy.
+
Various activities cause harmful magical energies to accumulate in your body. A small amount of magical contamination (a dark or light grey "Contam" status) is mostly harmless, and will dissipate over time without any further effect. Larger amounts of accumulated magic contamination (a yellow, red, or dark red "Contam" status) will make you start to [[glow]] with magical contamination.
  
Glowing is bad for two reasons:
+
Contamination over 5000 points is considered severe. Being at a severe contamination level makes you easier to hit and reveals you if [[invisible]], similar to the [[Corona]] spell. It also leaves you at risk to bad [[mutation]]s and damaging explosions.
*A glowing target is easier to hit (similar to the effects of the [[Corona]] spell). Similarly, glow can reveal you if you are [[invisible]].
 
*You may suffer damage and mutations from the magical energies your body has absorbed.
 
  
 +
Any amount of contamination can cause [[ugly thing]]s adjacent to you change their colour.
  
==Accumulation==
+
==Contamination Levels==
Your magic contamination level can be increased via the following methods. Any behaviour marked with (Z) offends [[Zin]] and will reduce the piety of his worshippers.
+
{| class="wikitable"
 +
|-
 +
! Contam<ref>{{source ref|0.29.0|player.cc|3959}}</ref>
 +
! Colour<ref>{{source ref|0.29.0|status.cc|809}}</ref>
 +
! Description<ref>{{source ref|0.29.0|player.cc|3995}}</ref>
 +
|-
 +
| >0
 +
| Dark grey
 +
| You are very lightly contaminated with residual magic.
 +
|-
 +
| 3000
 +
| Light grey
 +
| You are lightly contaminated with residual magic.
 +
|-
 +
| 5000
 +
| Yellow
 +
| You are contaminated with residual magic.
 +
|-
 +
| 15000
 +
| Light Red
 +
| You are heavily infused with residual magic.
 +
|-
 +
| 25000
 +
| Red
 +
| You are practically glowing with residual magic!
 +
|-
 +
| 40000
 +
| Red
 +
| Your entire body has taken on an eerie glow!
 +
|-
 +
| 60000
 +
| Red
 +
| You are engulfed in a nimbus of crackling magics!
 +
|}
  
===Haste===
+
==Sources==
*Spending time under the influence of [[Haste]] while not [[berserk]].
+
===Spells===
*+1 point for becoming hasted using a Haste spell or [[wand of hasting]].
+
*[[Irradiate]]: 1250 - 2000 per cast<ref>{{source ref|0.29.0|spl-cast.cc|1949}}</ref>.
*+1 point for having your already-in-force Haste effect extended by:
+
**When a player is hit ''by'' Irradiate: 2000-3000 <ref>{{source ref|0.29.0|spl-damage.cc|1839}}</ref>
**Rage extension (Z)
 
**A potion of haste or berserk rage (Z)
 
**Xom sending you berserk.
 
**Invoking Okawaru's Haste power
 
*+2 points for having your Haste extended by:
 
**The Haste spell or a wand of hasting. (Z)
 
  
===Invisibility===
+
===Spell Miscasts===
*Spending time [[invisible]].
+
*Every [[miscast]]: Depends on the miscast severity. See [[Miscast effect#Effects|Miscast effect]] for more information.
*+1 point for making yourself invisible with a [[wand of invisibility]] or the [[Invisibility]] spell.(Z)
+
*[[Transmutations]] miscast: Doubles current contamination
 
 
===Might===
 
*+1 point for extending Might by:
 
**Quaffing a potion of might (Z)
 
 
 
===Teleport Control===
 
*+1 point every time you ''successfully'' control a teleportation. (Z)
 
*+1 point every time you make a ''fully-controlled'' blink. (Z)
 
 
 
===Miscasts and Miscast Effects===
 
*[[Miscasting]] spells.
 
*Being struck by the Divinations miscast effect of Sif Muna's wrath.
 
*Unwielding a weapon with the [[distortion]] brand. (Z)
 
*The capriciousness of [[Xom]] inflicting a miscast effect on you.
 
*Zot traps (which apply random miscasts).
 
 
 
===Contaminating Miscast Effects===
 
The following miscasts can give you up to 18 contamination:
 
*Severity-3 Enchantments (25% chance)
 
*Severity-3 Translocations (25% chance)
 
*Severity-2 Transmutations (25% chance)
 
 
 
The following miscasts can give you up to 34 contamination:
 
*Severity-3 Transmutations (25% chance)
 
  
 
===Other===
 
===Other===
*Quaffing a [[potion of resistance]]. (+1) (Z)
+
*[[Invisibility (ego)]]: 1000-1500 per successful use <ref>{{source ref|0.29.0|ability.cc|2674}}</ref>
*Unequipping an [[artifact]] which induces magical contamination. This will usually add a minimum of 5 points.
+
*Removing an [[artefact]] with *Contam: 7000<ref>{{source ref|0.29.0|player-equip.cc|389}}</ref>
 
+
*[[Mutagenic fog]]: 1300 - 2550<ref>{{source ref|0.29.0|cloud.cc|1165}}</ref>
===Spending Time===
+
*[[Zot trap]]: 7000 - 20000 (one of many possible outcomes)<ref>{{source ref|0.29.0|traps.cc|414}}</ref>
For purposes of the above, "spending time" under the influence of an effect means having that effect in force when the handle_time() function is called (roughly once every 20 turns). When this occurs:
+
*[[Jiyva]] [[penance]]: 0 - <code>500 * penance</code> (one of many possible outcomes)<ref>{{source ref|0.29.0|god-wrath.cc|L1233}}</ref>
*60% chance of +1 contamination if you are invisible.
 
*60% chance of +1 contamination if you are hasted and not berserk.
 
 
 
==Spell Effects==
 
Some spells will inflict magical contamination upon the caster:
 
*[[Irradiate]] - always one point of contamination, although the caster can reach Yellow glow status in as few as two successive casts.
 
*[[Controlled Blink]] - causes contamination in the same manner as a [[scroll of blink]].
 
 
 
 
 
==Base Contamination for Miscasts==
 
To figure the baseline contamination level for a miscast, use the following calculation.
 
 
 
      A= (spell_level ^ 2) * margin_of_failure
 
      B= A+250
 
      C= B/500
 
      With C being your final number. Fractional points are rounded randomly.
 
  
 
==Dissipation==
 
==Dissipation==
Dissipation of magic contamination is handled by the handle_time() function. Each time it is called:
+
Magic contamination is dissipated at the rate of 75 per turn.<ref>{{source ref|0.28.0|timed-effects.cc|108}}</ref> Quaffing a [[potion of cancellation]] instantly removes 1000 - 5000 points of contamination.
*If you are neither Hasted (whether berserk or not) nor Invisible, you have a 50% chance of harmlessly dissipating one point of magic contamination.
 
*If you have 5 or more points of magic contamination, there is a 50% chance of a violent discharge occurring. The effects of this are as follows:
 
**If you are in a [[Zin|Sanctuary]], there is a ((contamination + 1) × 4)% chance of being told that Zin has prevented a violent discharge of magical energies.
 
**If the previous check failed (either the random roll was too high, or you weren't in a sanctuary to begin with), then there is a ((total contamination + 1) × 4)% chance of some of your contamination discharging violently. When this occurs:
 
***If your contamination total is 10 or higher then there is a 50% chance of a magical explosion erupting from your body.
 
***You receive one mutation. 20% of the time this will be an entirely random mutation; the rest of the time it will be from the list of [[bad mutations]]. If you have mutation resistance, there is a 50% chance that this effect is ignored.
 
***A random amount of magic contamination (always at least one point, never more than 25% of your current contamination amount) is removed.
 
  
The magical explosions unleashed by violent discharge of magic contamination do damage specified by:
+
While being severely contaminated every 70 - 200 turns<ref>{{source ref|0.29.0|timed-effects.cc|257}}</ref> there is <code>contamination / 12000</code><ref>{{source ref|0.29.0|timed-effects.cc|117}}</ref> chance of a violent release of energies. Standing in [[Zin]]'s Sanctuary stops this from happening.
dice_def(3, you.magic_contamination × (you.is_undead ? 4 : 2) / 4)
 
For example, if you are not undead, and have 50 points of magical contamination (this is a really, really severe problem...), you will take 3d25 (3-75) points of physical damage (AC applies).
 
  
Quaffing a [[potion of cancellation]] will reduce your contamination level by 1d5 points.
+
One likely bad mutation (about 95% chance) is gained that bypasses [[mutation resistance]]. If contamination is higher than 10,000, there is also a damaging explosion. The damage is <code>3d(contamination / 2000)</code>, and doubled for the non-living. Explosion size also increases with the contamination level. After the negative effects, contamination is reduced by 1000 - <code>1000 + contamination / 4</code><ref>{{source ref|0.29.0|timed-effects.cc|74}}</ref>.
  
One of the aspects of Sif Muna's wrath is reducing the remaining duration of all your enchantments to 1 turn; when this occurs, your magic contamination level is also reduced by 1d5 points.
+
==Tips & Tricks==
 +
Being in lichform, by way of [[Necromutation]], prevents any contamination-related malmutations; instead, your [[stat]]s temporarily rot.
  
 +
==History==
 +
*Prior to [[0.29]], the contamination level for the light grey warning was 3500 instead of 3000. This change was enacted to match [[Irradiate]], which had its contamination increased in this version.
 +
*Prior to [[0.28]], the [[Orb of Zot]] extended contamination.
 +
*Prior to [[0.26]], magic contamination decayed much slower: -25 per turn instead of -75, while the time between bad effects was also slower (200 - 600 turns).
 +
*Prior to [[0.25]], [[miscast effect]]s were different, and thus had different contamination levels.
 +
*Prior to [[0.19]], the light grey contamination level didn't exist.
 +
*Prior to [[0.10]], this effect was simply called [[glow]], a ambiguous term that also referred to the backlight caused by [[Sticky Flame]] and [[Corona]] (and contamination itself).
  
 +
===Sources of Contamination===
 +
*Prior to [[0.28]], [[invisibility]] caused contamination over time, and [[Disjunction]] had 750 - 1250 contamination on cast.
 +
*Prior to [[0.26]], casting [[Controlled Blink]] or reading a [[scroll of blinking]] contaminated the player.
 +
*Prior to [[0.20]], drinking a [[potion of haste]] contaminated the player, and the [[haste]] effect caused contamination over time.
  
==History==
+
==References==
Prior to 0.10, this effect was simply called [[glow]], a term which ambiguously referred either to magic contamination, or to the relatively harmless glow from [[Sticky Flame]] or [[Corona]].
+
<references/>
  
 
[[Category:Magic]]
 
[[Category:Magic]]
 
[[Category:Game mechanics]]
 
[[Category:Game mechanics]]
 
[[Category:Status effects]]
 
[[Category:Status effects]]

Latest revision as of 20:03, 27 July 2023

Version 0.29: This article may not be up to date for the latest stable release of Crawl.

Magic contamination is a dangerous condition caused by miscasts and some magical effects.

Overview

Various activities cause harmful magical energies to accumulate in your body. A small amount of magical contamination (a dark or light grey "Contam" status) is mostly harmless, and will dissipate over time without any further effect. Larger amounts of accumulated magic contamination (a yellow, red, or dark red "Contam" status) will make you start to glow with magical contamination.

Contamination over 5000 points is considered severe. Being at a severe contamination level makes you easier to hit and reveals you if invisible, similar to the Corona spell. It also leaves you at risk to bad mutations and damaging explosions.

Any amount of contamination can cause ugly things adjacent to you change their colour.

Contamination Levels

Contam[1] Colour[2] Description[3]
>0 Dark grey You are very lightly contaminated with residual magic.
3000 Light grey You are lightly contaminated with residual magic.
5000 Yellow You are contaminated with residual magic.
15000 Light Red You are heavily infused with residual magic.
25000 Red You are practically glowing with residual magic!
40000 Red Your entire body has taken on an eerie glow!
60000 Red You are engulfed in a nimbus of crackling magics!

Sources

Spells

  • Irradiate: 1250 - 2000 per cast[4].
    • When a player is hit by Irradiate: 2000-3000 [5]

Spell Miscasts

Other

Dissipation

Magic contamination is dissipated at the rate of 75 per turn.[11] Quaffing a potion of cancellation instantly removes 1000 - 5000 points of contamination.

While being severely contaminated every 70 - 200 turns[12] there is contamination / 12000[13] chance of a violent release of energies. Standing in Zin's Sanctuary stops this from happening.

One likely bad mutation (about 95% chance) is gained that bypasses mutation resistance. If contamination is higher than 10,000, there is also a damaging explosion. The damage is 3d(contamination / 2000), and doubled for the non-living. Explosion size also increases with the contamination level. After the negative effects, contamination is reduced by 1000 - 1000 + contamination / 4[14].

Tips & Tricks

Being in lichform, by way of Necromutation, prevents any contamination-related malmutations; instead, your stats temporarily rot.

History

  • Prior to 0.29, the contamination level for the light grey warning was 3500 instead of 3000. This change was enacted to match Irradiate, which had its contamination increased in this version.
  • Prior to 0.28, the Orb of Zot extended contamination.
  • Prior to 0.26, magic contamination decayed much slower: -25 per turn instead of -75, while the time between bad effects was also slower (200 - 600 turns).
  • Prior to 0.25, miscast effects were different, and thus had different contamination levels.
  • Prior to 0.19, the light grey contamination level didn't exist.
  • Prior to 0.10, this effect was simply called glow, a ambiguous term that also referred to the backlight caused by Sticky Flame and Corona (and contamination itself).

Sources of Contamination

References