Difference between revisions of "Magic contamination"

From CrawlWiki
Jump to: navigation, search
m (Antimagic and Contamination: added the potion of cancellation effect)
m
 
(44 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{version011}}
+
{{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 basically 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; glowing is bad for two reasons.
+
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.
*A glowing target is easier to hit.
 
*You may suffer damage and mutations from the magical energies your body has absorbed.
 
  
==Accumulation==
+
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.
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.
 
  
===Haste===
+
Any amount of contamination can cause [[ugly thing]]s adjacent to you change their colour.
*Spending time under the influence of [[Haste]] while not [[berserk]].
 
*+1 point for becoming hasted using a Haste spell or [[wand of hasting]].
 
*+1 point for having your already-in-force Haste effect extended by:
 
**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===
+
==Contamination Levels==
*Spending time [[invisible]].
+
{| class="wikitable"
*+1 point for making yourself invisible with a [[wand of invisibility]] or the [[Invisibility]] spell.(Z)
+
|-
 +
! 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!
 +
|}
  
===Might===
+
==Sources==
*+1 point for extending Might by:
+
===Spells===
**Quaffing a potion of might (Z)
+
*[[Irradiate]]: 1250 - 2000 per cast<ref>{{source ref|0.29.0|spl-cast.cc|1949}}</ref>.
 +
**When a player is hit ''by'' Irradiate: 2000-3000 <ref>{{source ref|0.29.0|spl-damage.cc|1839}}</ref>
  
===Teleport Control===
+
===Spell Miscasts===
*+1 point every time you ''successfully'' control a teleportation. (Z)
+
*Every [[miscast]]: Depends on the miscast severity. See [[Miscast effect#Effects|Miscast effect]] for more information.
*+1 point every time you make a ''fully-controlled'' blink. (Z)
+
*[[Transmutations]] miscast: Doubles current contamination
 
 
===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).
 
  
 
===Other===
 
===Other===
*Quaffing a [[potion of resistance]]. (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.
+
*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>
 +
*[[Zot trap]]: 7000 - 20000 (one of many possible outcomes)<ref>{{source ref|0.29.0|traps.cc|414}}</ref>
 +
*[[Jiyva]] [[penance]]: 0 - <code>500 * penance</code> (one of many possible outcomes)<ref>{{source ref|0.29.0|god-wrath.cc|L1233}}</ref>
  
===Spending Time===
+
==Dissipation==
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:
+
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.
*60% chance of +1 contamination if you are invisible.
 
*60% chance of +1 contamination if you are hasted and not berserk.
 
  
===Base Contamination for Miscasts===
+
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.
To figure the baseline contamination level for a miscast, use the following calculation.
 
  
      A= (spell_level ^ 2) * margin_of_failure
+
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>.
      B= A+250
 
      C= B/500
 
      With C being your final number. Fractional points are rounded randomly.
 
  
===Contaminating Miscast Effects===
+
==Tips & Tricks==
The following miscasts can give you up to 18 contamination:
+
Being in lichform, by way of [[Necromutation]], prevents any contamination-related malmutations; instead, your [[stat]]s temporarily rot.
*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:
+
==History==
*Severity-3 Transmutations (25% chance)
+
*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).
  
==Dissipation==
+
===Sources of Contamination===
Dissipation of magic contamination is handled by the handle_time() function. Each time it is called:
+
*Prior to [[0.28]], [[invisibility]] caused contamination over time, and [[Disjunction]] had 750 - 1250 contamination on cast.
*If you are neither Hasted (whether berserk or not) nor Invisible, you have a 50% chance of harmlessly dissipating one point of magic contamination.
+
*Prior to [[0.26]], casting [[Controlled Blink]] or reading a [[scroll of blinking]] contaminated the player.
*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:
+
*Prior to [[0.20]], drinking a [[potion of haste]] contaminated the player, and the [[haste]] effect caused contamination over time.
**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]]. Mutation resistance applies as normal.
 
***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:
+
==References==
dice_def(3, you.magic_contamination × (you.is_undead ? 4 : 2) / 4)
+
<references/>
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).
 
 
 
==Antimagic and Contamination==
 
Reading a [[scroll of vulnerability]] will harmlessly reduce your magic contamination by 1d5 points. This is a good reason to carry and save these rare scrolls, as their other effect, halving the MR of nearby monsters, is generally not that useful to most characters.
 
 
 
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.
 
 
 
Also, quaffing a [[potion of cancellation]] will reduce your contamination level by 1-5 points, although whether one would want to waste such a rare potion solely for that effect is unsure.
 
 
 
==History==
 
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]].
 
  
 
[[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