<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Psi_bolt</id>
	<title>Psi bolt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Psi_bolt"/>
	<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;action=history"/>
	<updated>2026-06-04T01:38:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.5</generator>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=183777&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Messages */ pothole</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=183777&amp;oldid=prev"/>
		<updated>2025-02-11T16:31:58Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Messages: &lt;/span&gt; pothole&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:31, 11 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|0-5&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|0-5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;quot;Your brain is on fire!&amp;quot; ''(not to be confused with [[intelligence]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;drain&lt;/del&gt;)''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;quot;Your brain is on fire!&amp;quot; ''(not to be confused with [[intelligence &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;drain&lt;/ins&gt;]])''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|6-10&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|6-10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=179353&amp;oldid=prev</id>
		<title>Umbire the Phantom: player =&gt; hero</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=179353&amp;oldid=prev"/>
		<updated>2024-11-23T19:41:45Z</updated>

		<summary type="html">&lt;p&gt;player =&amp;gt; hero&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:41, 23 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolt is a melee-range spell that can be used by any [[monster]] that casts [[mage spell]]s, and is only used against the [[hero]]. It deals damage depending on the caster's [[Monster level|level]], as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} The psi bolt spell has its damage halved if the hero has either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if they have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|499|nethack=3.6.7}}{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolt is a melee-range spell that can be used by any [[monster]] that casts [[mage spell]]s, and is only used against the [[hero]]. It deals damage depending on the caster's [[Monster level|level]], as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} The psi bolt spell has its damage halved if the hero has either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if they have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|499|nethack=3.6.7}}{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;player &lt;/del&gt;has magic resistance or else is [[hallucinating]] (since both properties block the spell){{refsrc|src/mcastu.c|93|nethack=3.6.7}} - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and raising them further to about 18% at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;hero &lt;/ins&gt;has magic resistance or else is [[hallucinating]] (since both properties block the spell){{refsrc|src/mcastu.c|93|nethack=3.6.7}} - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and raising them further to about 18% at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation shorthand===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation shorthand===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.3.1]] and earlier versions, including some variants based on those versions, magic resistance reduces damage from the attack to 1, according to a comment in the code.{{refsrc|src/mcastu.c|497|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.3.1]] and earlier versions, including some variants based on those versions, magic resistance reduces damage from the attack to 1, according to a comment in the code.{{refsrc|src/mcastu.c|497|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some variants based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;player character &lt;/del&gt;(e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some variants based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;hero &lt;/ins&gt;(e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Messages==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Messages==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=179352&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* History */ typo</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=179352&amp;oldid=prev"/>
		<updated>2024-11-23T19:40:48Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;History: &lt;/span&gt; typo&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:40, 23 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.3.1]] and earlier versions, including some variants based on those versions, magic resistance reduces damage from the attack to 1, according to a comment in the code.{{refsrc|src/mcastu.c|497|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.3.1]] and earlier versions, including some variants based on those versions, magic resistance reduces damage from the attack to 1, according to a comment in the code.{{refsrc|src/mcastu.c|497|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;various &lt;/del&gt;based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a player character (e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variants &lt;/ins&gt;based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a player character (e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Messages==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Messages==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=175830&amp;oldid=prev</id>
		<title>Umbire the Phantom: citations, details, potholes</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=175830&amp;oldid=prev"/>
		<updated>2024-07-24T17:42:25Z</updated>

		<summary type="html">&lt;p&gt;citations, details, potholes&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:42, 24 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolt is a melee-range spell that can be used by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level, as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Psi &lt;/del&gt;bolt&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'s &lt;/del&gt;damage &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is &lt;/del&gt;halved if &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you have &lt;/del&gt;either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you &lt;/del&gt;have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolt is a melee-range spell that can be used by any [[monster]] that casts [[mage spell]]s&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, and is only used against the [[hero]]&lt;/ins&gt;. It deals damage depending on the caster's &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Monster level|&lt;/ins&gt;level&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;, as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The psi &lt;/ins&gt;bolt &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;spell has its &lt;/ins&gt;damage halved if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the hero has &lt;/ins&gt;either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;they &lt;/ins&gt;have both properties (rounded up in both cases).&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/mcastu.c|499|nethack=3.6.7}}&lt;/ins&gt;{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;immune to &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;former &lt;/del&gt;spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and raising them further to about 18% at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;has magic resistance or else &lt;/ins&gt;is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[hallucinating]] (since both properties block &lt;/ins&gt;the spell&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;){{refsrc|src/mcastu.c|93|nethack=3.6.7}} &lt;/ins&gt;- this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and raising them further to about 18% at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation shorthand===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation shorthand===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since most monsters have either zero damage dice or 6-sided damage dice for their spellcasting attacks, the &amp;quot;base&amp;quot; damage of this spell can reliably be expressed as {{frac|'''ml'''|2}}d6 damage, with additional damage based on the monster that cast the spell: +8d6 for [[Orcus]] and [[Demogorgon]], +6d6 for [[Dispater]], +4d6 for [[Archon]]s and [[golden naga]], +2d6 for [[ki-rin]] and +1d6 for other monsters. [[Neferet the Green]] is the one exception, with her psi bolt dealing damage equal to ({{frac|'''ml'''|2}} + 2)d8.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since most monsters have either zero damage dice or 6-sided damage dice for their &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mage &lt;/ins&gt;spellcasting attacks, the &amp;quot;base&amp;quot; damage of this spell can reliably be expressed as {{frac|'''ml'''|2}}d6 damage, with additional damage based on the monster that cast the spell: +8d6 for [[Orcus]] and [[Demogorgon]], +6d6 for [[Dispater]], +4d6 for [[Archon]]s and [[golden naga]], +2d6 for [[ki-rin]] and +1d6 for other monsters. [[Neferet the Green]] is the one exception, with her psi bolt dealing damage equal to ({{frac|'''ml'''|2}} + 2)d8.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Strategy==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Strategy==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot; &gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.3.1]] and earlier versions, including some &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;various &lt;/del&gt;based on those versions, magic resistance &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reduced &lt;/del&gt;damage from the attack to 1, according to a comment in the code.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.3.1]] and earlier versions, including some &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variants &lt;/ins&gt;based on those versions, magic resistance &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;reduces &lt;/ins&gt;damage from the attack to 1, according to a comment in the code.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/mcastu.c|497|nethack=3.6.7}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some various based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a player character (e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some various based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a player character (e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot; &gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===SLASH'EM===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===SLASH'EM===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[SLASH'EM]], there are many new monsters that can cast mage spells - using the [[#Damage calculation shorthand|shorthand]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;methods &lt;/del&gt;described above, the additional damage values are as follows: +6d6 for [[ghoul mage]]s, +5d6 for [[Solar]]s, +4d6 for [[Planetar]]s and [[ghoul queen]]s, +2d6 for [[vampire mage]]s, and +1d6 for all others.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[SLASH'EM]], there are many new monsters that can cast mage spells - using the [[#Damage calculation shorthand|shorthand &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;methods&lt;/ins&gt;]] described above, the additional damage values are as follows: +6d6 for [[ghoul mage]]s, +5d6 for [[Solar]]s, +4d6 for [[Planetar]]s and [[ghoul queen]]s, +2d6 for [[vampire mage]]s, and +1d6 for all others.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As SLASH'EM is a 3.4.3 variant, high-level spellcasters are very likely to cast psi bolt - this includes Demogorgon and [[Dispater]], who are guaranteed encounters alongside the other [[demon lords and princes]] that are optional in vanilla ''NetHack''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As SLASH'EM is a 3.4.3 variant, high-level spellcasters are very likely to cast psi bolt - this includes Demogorgon and [[Dispater]], who are guaranteed encounters alongside the other [[demon lords and princes]] that are optional in vanilla ''NetHack''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=164230&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Description */ word choice</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=164230&amp;oldid=prev"/>
		<updated>2024-03-09T12:10:18Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description: &lt;/span&gt; word choice&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:10, 9 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolt is a melee-range spell that can be used by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level, as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolt is a melee-range spell that can be used by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level, as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;then &lt;/del&gt;to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;raising them further &lt;/ins&gt;to about 18% &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/ins&gt;&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation shorthand===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation shorthand===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160849&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Description */ tweak</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160849&amp;oldid=prev"/>
		<updated>2024-01-25T11:34:18Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description: &lt;/span&gt; tweak&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:34, 25 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The psi &lt;/del&gt;bolt &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;spell &lt;/del&gt;is a melee-range spell that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;inflicts direct damage, and &lt;/del&gt;can be by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level, as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Psi &lt;/ins&gt;bolt is a melee-range spell that can be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;used &lt;/ins&gt;by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level, as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160847&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Description */ punc</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160847&amp;oldid=prev"/>
		<updated>2024-01-25T11:11:12Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description: &lt;/span&gt; punc&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:11, 25 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The psi bolt spell is a melee-range spell that inflicts direct damage, and can be by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The psi bolt spell is a melee-range spell that inflicts direct damage, and can be by any [[monster]] that casts [[mage spell]]s. It deals damage depending on the caster's level&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160846&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Description */ pothole</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160846&amp;oldid=prev"/>
		<updated>2024-01-25T11:10:58Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description: &lt;/span&gt; pothole&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:10, 25 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The psi bolt spell is a melee-range spell that inflicts direct damage, and can be by any [[monster]] that casts [[mage &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;spells&lt;/del&gt;]]. It deals damage depending on the caster's level as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The psi bolt spell is a melee-range spell that inflicts direct damage, and can be by any [[monster]] that casts [[mage &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;spell&lt;/ins&gt;]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;s&lt;/ins&gt;. It deals damage depending on the caster's level as with most standard calculations for monster spell damage: the damage is ({{frac|''ML''|2}} + 1)d6 of damage unless the monster's casting attack specifies any dice, in which can it deals ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice.{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160811&amp;oldid=prev</id>
		<title>Umbire the Phantom: more general tweaks</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160811&amp;oldid=prev"/>
		<updated>2024-01-23T11:53:49Z</updated>

		<summary type="html">&lt;p&gt;more general tweaks&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:53, 23 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases, and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;shorthand&lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since most monsters have either zero damage dice or 6-sided damage dice for their spellcasting attacks, the &amp;quot;base&amp;quot; damage of this spell can reliably be expressed as {{frac|'''ml'''|2}}d6 damage, with additional damage based on the monster that cast the spell: +8d6 for [[Orcus]] and [[Demogorgon]], +6d6 for [[Dispater]], +4d6 for [[Archon]]s and [[golden naga]], +2d6 for [[ki-rin]] and +1d6 for other monsters. [[Neferet the Green]] is the one exception, with her psi bolt dealing damage equal to ({{frac|'''ml'''|2}} + 2)d8 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;damage&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since most monsters have either zero damage dice or 6-sided damage dice for their spellcasting attacks, the &amp;quot;base&amp;quot; damage of this spell can reliably be expressed as {{frac|'''ml'''|2}}d6 damage, with additional damage based on the monster that cast the spell: +8d6 for [[Orcus]] and [[Demogorgon]], +6d6 for [[Dispater]], +4d6 for [[Archon]]s and [[golden naga]], +2d6 for [[ki-rin]] and +1d6 for other monsters. [[Neferet the Green]] is the one exception, with her psi bolt dealing damage equal to ({{frac|'''ml'''|2}} + 2)d8.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Strategy==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Strategy==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot; &gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===SLASH'EM===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===SLASH'EM===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[SLASH'EM]], there are many new &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;spellcasting &lt;/del&gt;monsters that can cast mage spells - using the [[#Damage calculation|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;damage calculation&lt;/del&gt;]] methods described above, the additional &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;damages &lt;/del&gt;values are as follows: +6d6 for [[ghoul mage]]s, +5d6 for [[Solar]]s, +4d6 for [[Planetar]]s and [[ghoul queen]]s, +2d6 for [[vampire mage]]s, and +1d6 for all others.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[SLASH'EM]], there are many new monsters that can cast mage spells - using the [[#Damage calculation &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;shorthand&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;shorthand&lt;/ins&gt;]] methods described above, the additional &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;damage &lt;/ins&gt;values are as follows: +6d6 for [[ghoul mage]]s, +5d6 for [[Solar]]s, +4d6 for [[Planetar]]s and [[ghoul queen]]s, +2d6 for [[vampire mage]]s, and +1d6 for all others.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As SLASH'EM is a 3.4.3 variant, high-level spellcasters are very likely to cast psi bolt - this includes Demogorgon and [[Dispater]], who are guaranteed encounters alongside the other &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;optional &lt;/del&gt;[[demon lords and princes]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;from &lt;/del&gt;''NetHack''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As SLASH'EM is a 3.4.3 variant, high-level spellcasters are very likely to cast psi bolt - this includes Demogorgon and [[Dispater]], who are guaranteed encounters alongside the other [[demon lords and princes]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that are optional in vanilla &lt;/ins&gt;''NetHack''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160766&amp;oldid=prev</id>
		<title>Umbire the Phantom: details and word choice</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Psi_bolt&amp;diff=160766&amp;oldid=prev"/>
		<updated>2024-01-22T13:39:46Z</updated>

		<summary type="html">&lt;p&gt;details and word choice&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:39, 22 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Psi bolt'''{{refsrc|src/mcastu.c|10|nethack=3.6.7|comment=the spell's name is never used in-game}} is a [[monster spell]] that appears in ''[[NetHack]]''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. It is a melee-range spell that inflicts direct damage, and can be by any monster that uses mage spells&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Psi bolt'''{{refsrc|src/mcastu.c|10|nethack=3.6.7|comment=the spell's name is never used in-game}} is a [[monster spell]] that appears in ''[[NetHack]]''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The psi bolt spell deals damage depending on the caster's level &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;('''ml'''), and the dice &lt;/del&gt;for &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that &lt;/del&gt;monster&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'s specific spellcasting attack&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;If &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;attack's &lt;/del&gt;damage &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dice are non-zero, i.e. '''n'''d'''x''', then the spell does &lt;/del&gt;({{frac|''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'ml'&lt;/del&gt;''|2}} + &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'''n'''&lt;/del&gt;)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;d&lt;/del&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''x''' damage. Otherwise&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the spell does &lt;/del&gt;({{frac|''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'ml'&lt;/del&gt;''|2}} + &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/del&gt;)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;d6 &lt;/del&gt;damage. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;If &lt;/del&gt;you have either [[half spell damage]] or [[magic resistance]]&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, the damage is halved&lt;/del&gt;, and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The psi bolt spell &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is a melee-range spell that inflicts direct damage, and can be by any [[monster]] that casts [[mage spells]]. It &lt;/ins&gt;deals damage depending on the caster's level &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as with most standard calculations &lt;/ins&gt;for monster &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;spell damage&lt;/ins&gt;: the damage &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is &lt;/ins&gt;({{frac|''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ML&lt;/ins&gt;''|2}} + &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/ins&gt;)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d6 of damage unless the monster&lt;/ins&gt;'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;s casting attack specifies any dice&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in which can it deals &lt;/ins&gt;({{frac|''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ML&lt;/ins&gt;''|2}} + &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;x)dy damage, where (x, y&lt;/ins&gt;) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is the amount and size of the &lt;/ins&gt;damage &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dice.{{refsrc|src/mcastu.c|288|nethack=3.6&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} Psi bolt's damage is halved if &lt;/ins&gt;you have either [[half spell damage]] or [[magic resistance]], and is reduced to {{frac|4}} if you have both properties (rounded up in both cases).&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half spell damage works for all monster spells}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases and then to about 18% &amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The higher the casting monster's level, the less likely that monster is to randomly select that spell: from levels 1 to 23, the odds decrease significantly from 100% to 4.3%. At level 24 and above, however, there is a chance that the [[touch of death]] monster spell will be replaced with a psi bolt if the player is immune to the former spell - this results in a ''slight'' bias of spell choice towards psi bolt, raising the chance to to 12% at level 25 in those cases&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;and then to about 18%&amp;lt;!-- rough (and somewhat incorrect) estimate: p ~= 1/25 + 24/25*(p+3/25)/2, thus p ~= 61/325 ~= 18.8%, but actually it's lower than that --&amp;gt; at level 50.{{refsrc|src/mcastu.c|87|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Damage calculation===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since most monsters have either zero damage dice or 6-sided damage dice for their spellcasting attacks, the &amp;quot;base&amp;quot; damage of this spell can reliably be expressed as {{frac|'''ml'''|2}}d6 damage, with additional damage based on the monster that cast the spell: +8d6 for [[Orcus]] and [[Demogorgon]], +6d6 for [[Dispater]], +4d6 for [[Archon]]s and [[golden naga]], +2d6 for [[ki-rin]] and +1d6 for other monsters. [[Neferet the Green]] is the one exception, with her psi bolt dealing damage equal to ({{frac|'''ml'''|2}} + 2)d8 damage.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/mcastu.c|288|nethack=3.6.7}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since most monsters have either zero damage dice or 6-sided damage dice for their spellcasting attacks, the &amp;quot;base&amp;quot; damage of this spell can reliably be expressed as {{frac|'''ml'''|2}}d6 damage, with additional damage based on the monster that cast the spell: +8d6 for [[Orcus]] and [[Demogorgon]], +6d6 for [[Dispater]], +4d6 for [[Archon]]s and [[golden naga]], +2d6 for [[ki-rin]] and +1d6 for other monsters. [[Neferet the Green]] is the one exception, with her psi bolt dealing damage equal to ({{frac|'''ml'''|2}} + 2)d8 damage.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Strategy==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Strategy==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolts from high-level spellcasters can prove to be a major threat in the late game. Though the [[touch of death]] is more [[Instadeath|immediately]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;run threatening&lt;/del&gt;, a strong enough psi bolt can still deal significant damage through magic resistance that would nullify the former spell completely.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Psi bolts from high-level spellcasters can prove to be a major threat in the late game. Though the [[touch of death]] is more [[Instadeath|immediately &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;run-threatening&lt;/ins&gt;]], a strong enough psi bolt can still deal significant damage through magic resistance that would nullify the former spell completely.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In [[NetHack 3.3.1]] and earlier versions, including some various based on those versions, magic resistance reduced damage from the attack to 1, according to a comment in the code.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some various based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a player character (e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[NetHack 3.4.3]] and earlier versions, including some various based on those versions, the relative frequency of the psi bolt spell would rapidly increase starting at level 24, passing 50% at level 44.{{refsrc|mcastu.c|83}} Spellcasting monsters with a very high level would use this spell very often, which could be a high-damage hazard to a player character (e.g. 33d6 base damage for a psi bolt from [[Demogorgon]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
</feed>