Difference between revisions of "Energy"
(teleself costs 19 in vanilla and 30 in slashem. wizmoded + source ref.) |
(major edit) |
||
Line 1: | Line 1: | ||
− | Your '''power''', or "'''Pw'''", is the amount of magical '''energy''' you have: | + | Your '''power''', or "'''Pw'''", is the amount of magical '''energy''' you have. For example: |
− | Dlvl:3 $:43 HP:68(68) Pw:13(18) AC:-3 Xp:8/1295 T:2358 | + | Dlvl:3 $:43 HP:68(68) '''Pw:13(18)''' AC:-3 Xp:8/1295 T:2358 |
− | The above status line shows a character whose current power is 13 and maximum power is 18. | + | The above [[status line]] shows a character whose current power is 13 and maximum power is 18. |
− | + | == Uses of energy == | |
+ | The main use of energy is to [[spellcasting|cast spells]]. You need 5 times the spell's level of energy to attempt casting a spell <ref>{{sourcecode|spell.c|737}}</ref>; otherwise “''You don't have enough energy to cast that spell.''” and nothing happens <ref>{{sourcecode|spell.c|757}}</ref>. If the attempt fails (“''You fail to cast the spell correctly.''”), only half of that energy is used up, rounded down <ref>{{sourcecode|spell.c|798}}</ref>. For example, casting a level 3 spell requires 15 energy, but if you fail for some reason, only 7 points are used. | ||
− | + | When carrying the [[Amulet of Yendor]], the energy cost is randomly increased by between 1 point and 2 times the usual amount (“''You feel the amulet draining your energy away.''”) <ref>{{sourcecode|spell.c|753}}</ref>. Thus to cast the same level 3 spell requires anywhere from 16 to 45 energy. If you do not have this extra amount of energy, you will not attempt the spell. | |
− | + | If you have [[teleportitis]], self-teleporting using <tt>'''^T'''</tt> uses 19 energy <ref>{{sourcecode|teleport.c|517}}</ref>, but you need 20 energy to attempt it. Having the Amulet of Yendor does not increase this. The usual random teleportitis does not use energy. | |
− | + | When you are [[polymorph]]ed into a [[dragon]], [[iron golem]], [[winter wolf]] or [[hell hound]], you can [[breath]]e a magical blast using <tt>[[monster (command)|#monster]]</tt>; this requires 15 energy <ref>{{sourcecode|polyself.c|748}}</ref>. Similarly, you can use 10 energy to summon help as a [[werecreature]] <ref>{{sourcecode|polyself.c|910}}</ref>, or emit a psychic blast as a [[mind flayer]] <ref>{{sourcecode|polyself.c|1075}}</ref>. | |
− | + | == Gaining energy == | |
+ | You normally regain energy slowly over time, unless your [[encumbrance]] is <tt>Stressed</tt> or worse, which blocks normal energy regeneration. Having [[the Eye of the Aethiopica]] allows you to regain energy rapidly, even when stressed. | ||
− | If you | + | === Specific methods === |
+ | <!-- todo: move citations to respective linked articles? --> | ||
+ | Quaffing a non-cursed [[potion of gain energy]] increases your current and maximum energy; a cursed potion decreases them. <tt>[[invoke|#invoke]]</tt> [[the Mitre of Holiness]] to regain 120 energy. | ||
+ | |||
+ | Reading any [[scroll of charging]] while [[confused]] recharges your energy to its maximum. If it was already maximum, you gain 5d4 total energy instead <ref>{{sourcecode|read.c|1056}}</ref>. | ||
+ | |||
+ | Eating a [[newt]] corpse sometimes increases energy by 1 to 3 points. If this would put you over the maximum, your maximum energy might also increase by 1. | ||
+ | |||
+ | If you trigger a [[magic trap]] and it explodes, “''Your body absorbs some of the magical energy!''” and your maximum energy is increased by 2; your energy is then completely refilled <ref>{{sourcecode|trap.c|1058}}</ref>. | ||
+ | |||
+ | Attacking a spellcasting monster with [[Magicbane]] has a chance of [[cancellation|cancelling]] it and increasing your current and maximum energy by 1 (“''You absorb magical energy!''”) <ref>{{sourcecode|artifact.c|844}}</ref>. | ||
+ | |||
+ | Lying with a [[foocubus]] may increase or decrease your energy. | ||
+ | |||
+ | === Energy regeneration === | ||
+ | The rate at which energy regenerates over time increases with your [[experience level]], [[wisdom]], and [[intelligence]]. If your [[encumbrance]] level is <tt>[[Stressed]]</tt> or higher it will not regenerate. | ||
+ | |||
+ | Your energy normally regenerates every <math>\lfloor (38 - \mathit{level}) \times 3 / 6 \rfloor</math> turns if you are a [[Wizard]], and every <math>\lfloor (38 - \mathit{level}) \times 4 / 6 \rfloor</math> turns for other roles.<ref>{{sourcecode|allmain.c|211}}</ref> If you carry [[the Eye of the Aethiopica]]), you regenerate energy every turn. | ||
The amount of energy regenerated each time is between 1 and <math>\lfloor (\mathit{Wis} + \mathit{Int}) / 15 \rfloor + 1</math>, which for most spellcasters means ''1d2'' or ''1d3''. | The amount of energy regenerated each time is between 1 and <math>\lfloor (\mathit{Wis} + \mathit{Int}) / 15 \rfloor + 1</math>, which for most spellcasters means ''1d2'' or ''1d3''. | ||
+ | Number of turns between regenerating energy: | ||
{| class="prettytable" | {| class="prettytable" | ||
! Level | ! Level | ||
Line 87: | Line 107: | ||
==SLASH'EM== | ==SLASH'EM== | ||
− | Self-teleport costs 30 points of power.<ref> | + | Self-teleport costs 30 points of power.<ref>{{sourcecode|SLASH'EM_0.0.7E7F2/teleport.c|790}}</ref> |
== References == | == References == |
Revision as of 16:09, 9 July 2011
Your power, or "Pw", is the amount of magical energy you have. For example:
Dlvl:3 $:43 HP:68(68) Pw:13(18) AC:-3 Xp:8/1295 T:2358
The above status line shows a character whose current power is 13 and maximum power is 18.
Contents
Uses of energy
The main use of energy is to cast spells. You need 5 times the spell's level of energy to attempt casting a spell [1]; otherwise “You don't have enough energy to cast that spell.” and nothing happens [2]. If the attempt fails (“You fail to cast the spell correctly.”), only half of that energy is used up, rounded down [3]. For example, casting a level 3 spell requires 15 energy, but if you fail for some reason, only 7 points are used.
When carrying the Amulet of Yendor, the energy cost is randomly increased by between 1 point and 2 times the usual amount (“You feel the amulet draining your energy away.”) [4]. Thus to cast the same level 3 spell requires anywhere from 16 to 45 energy. If you do not have this extra amount of energy, you will not attempt the spell.
If you have teleportitis, self-teleporting using ^T uses 19 energy [5], but you need 20 energy to attempt it. Having the Amulet of Yendor does not increase this. The usual random teleportitis does not use energy.
When you are polymorphed into a dragon, iron golem, winter wolf or hell hound, you can breathe a magical blast using #monster; this requires 15 energy [6]. Similarly, you can use 10 energy to summon help as a werecreature [7], or emit a psychic blast as a mind flayer [8].
Gaining energy
You normally regain energy slowly over time, unless your encumbrance is Stressed or worse, which blocks normal energy regeneration. Having the Eye of the Aethiopica allows you to regain energy rapidly, even when stressed.
Specific methods
Quaffing a non-cursed potion of gain energy increases your current and maximum energy; a cursed potion decreases them. #invoke the Mitre of Holiness to regain 120 energy.
Reading any scroll of charging while confused recharges your energy to its maximum. If it was already maximum, you gain 5d4 total energy instead [9].
Eating a newt corpse sometimes increases energy by 1 to 3 points. If this would put you over the maximum, your maximum energy might also increase by 1.
If you trigger a magic trap and it explodes, “Your body absorbs some of the magical energy!” and your maximum energy is increased by 2; your energy is then completely refilled [10].
Attacking a spellcasting monster with Magicbane has a chance of cancelling it and increasing your current and maximum energy by 1 (“You absorb magical energy!”) [11].
Lying with a foocubus may increase or decrease your energy.
Energy regeneration
The rate at which energy regenerates over time increases with your experience level, wisdom, and intelligence. If your encumbrance level is Stressed or higher it will not regenerate.
Your energy normally regenerates every turns if you are a Wizard, and every turns for other roles.[12] If you carry the Eye of the Aethiopica), you regenerate energy every turn.
The amount of energy regenerated each time is between 1 and , which for most spellcasters means 1d2 or 1d3.
Number of turns between regenerating energy:
Level | Non-wizard | Wizard |
---|---|---|
1 | 24 | 18 |
2 | 24 | 18 |
3 | 23 | 17 |
4 | 22 | 17 |
5 | 22 | 16 |
6 | 21 | 16 |
7 | 20 | 15 |
8 | 20 | 15 |
9 | 19 | 14 |
10 | 18 | 14 |
11 | 18 | 13 |
12 | 17 | 13 |
13 | 16 | 12 |
14 | 16 | 12 |
15 | 15 | 11 |
16 | 14 | 11 |
17 | 14 | 10 |
18 | 13 | 10 |
19 | 12 | 9 |
20 | 12 | 9 |
21 | 11 | 8 |
22 | 10 | 8 |
23 | 10 | 7 |
24 | 9 | 7 |
25 | 8 | 6 |
26 | 8 | 6 |
27 | 7 | 5 |
28 | 6 | 5 |
29 | 6 | 4 |
30 | 5 | 4 |
SLASH'EM
Self-teleport costs 30 points of power.[13]