Spellbook of protection/zh-CN

From NetHackWiki
Jump to navigation Jump to search

NetHack 中文 Wiki 需要您的帮助!
了解如何帮助我们完善Wiki

+   保护魔法书Light green spellbook.png
外观 随机
相对概率 1.8%
基础价 100 zm
重量 50
阅读所需行动数 5
墨水消耗量 5~9
法术流派 神圣
法术等级 1
能量消耗 5 Pw
定向性 非定向
欲查看由此法术、阵营祭司及其他来源提供的防御加成效果的更多信息,请参阅保护

NetHack中,保护魔法书(spellbook of protection)是教授保护(protection)法术的魔法书

生成

僧侣在游戏开始时有13的概率获得一本保护魔法书[1][2]牧师在游戏开始时获得的随机魔法书有可能是保护魔法书[3][4][5]巫师在游戏开始时获得的随机魔法书有可能是保护魔法书[6][4]

以下内容涉及即将到来的版本(NetHack 3.7.0)之信息。如果该版本已发布,请验证此处信息是否准确,并作出相应修改,以将其并入页面。

根据commit 319dfbdacommit 495a1a9b,现在巫师角色在开局时即拥有保护魔法书的鉴定信息。

根据commit 96787441,以贫民设定开局的骑士、僧侣和牧师在游戏开始时即拥有保护魔法书的鉴定信息。

描述

施放时,保护法术会赋予玩家临时的AC加成,每次施放时赋予的加成量取决于施法者的经验等级、施法者当前已经从法术获得的AC加成量,以及施法者当前的AC值。一般来说,玩家第一次施法时会获得至多5点AC加成,随后的每一次施法赋予的加成量会根据已有的加成增加而递减[7]。此外,当持有来自法术的AC加成时,如果玩家的销魔等级为0,则将销魔等级增加到1,该加成不与防具或外在保护特质赋予的销魔能力叠加。法术赋予的AC加成每10回合减少1点,如果施法者的神圣法术技能等级为老练,则AC加成每20回合减少1点。

机制细节

每次施放保护法术赋予的AC加成计算公式如下[7]

1 + \lfloor \log_2 (\text{XL}) \rfloor - \text{prior spell AC}

1 + \lfloor \log_2 (\text{XL}) \rfloor - \left\lfloor\frac{\text{prior spell AC}}{4-\left\lfloor\frac{\text{other AC}}{10}\right\rfloor}\right\rfloor

以两个公式分别计算出结果后,取其中的最大值作为本次施法获得的加成。公式中,prior spell AC是施法者已经从法术中得到的AC加成,other AC是施法者除法术加成以外拥有的AC值,log2(XL)是施法者的经验等级以2为底的对数,在公式中做向下取整处理,计算值见下表:

经验等级 log2(XL)
1 0
2~3 1
4~7 2
8~15 3
16~30 4

下表展示施法获得的总加成与玩家的经验等级,除法术加成以外的AC值,以及施法次数的关系:

经验等级 除法术加成以外的AC值 施法n次后获得的总AC加成
1 2 3 4 5 6 7 8 9
1 10~1 1 2 3 4 4 4 4 4 4
1 0~-9 1 2 3 3 3 3 3 3 3
1 -10~-19 1 2 2 2 2 2 2 2 2
1 <-19 1 1 1 1 1 1 1 1 1
2-3 10~1 2 4 5 6 7 8 8 8 8
2-3 0~-9 2 4 5 6 6 6 6 6 6
2-3 -10~-19 2 3 4 4 4 4 4 4 4
2-3 <-19 2 2 2 2 2 2 2 2 2
4-7 10~1 3 6 8 9 10 11 12 12 12
4-7 0~-9 3 5 7 8 9 9 9 9 9
4-7 -10~-19 3 5 6 6 6 6 6 6 6
4-7 <-19 3 3 3 3 3 3 3 3 3
8-15 10~1 4 7 10 12 13 14 15 16 16
8-15 0~-9 4 7 9 10 11 12 12 12 12
8-15 -10~-19 4 6 7 8 8 8 8 8 8
8-15 <-19 4 4 4 4 4 4 4 4 4
16-30 10~1 5 9 12 14 16 17 18 19 20
16-30 0~-9 5 9 11 13 14 15 15 15 15
16-30 -10~-19 5 8 9 10 10 10 10 10 10
16-30 <-19 5 5 5 5 5 5 5 5 5

策略

保护法术适合用于辅助玩家对付高强度或成群出现的怪物。此外,由于此法术的能量消耗很低,因此也适合用来锻炼神圣法术技能。

对于前期缺少防具且无法穿戴铠甲的僧侣而言,保护法术能够大幅提高生存率。

历史

保护魔法书最初于NetHack 3.3.0加入游戏。

NetHack 3.4.3及更早版本中,游戏存在一个程序漏洞:计算保护法术的AC加成时,游戏会错误地将玩家已从法术获得的AC加成的2倍增加到“除法术以外的AC值”中进行计算,这导致保护法术赋予的AC加成远低于预期值。此漏洞在NetHack 3.6.0中,通过commit bd324483修复。

消息

你周围的<空气>开始出现金色烟雾。(The <air> around you begins to shimmer with a golden haze.)
你施放了保护法术。
你周围的金色烟雾变得更浓了。(The golden haze around you becomes more dense.)
你在已拥有法术的AC加成时继续施放保护法术。
你的皮肤感到片刻温暖。(Your skin feels warm for a moment.)
你在法术赋予的AC加成达到最大时继续施放保护法术。
你周围的金色烟雾没那么浓了。(The golden haze around you becomes less dense.)
保护法术的加成减退。
你周围的金色烟雾消失了。(The golden haze around you disappears.)
保护法术的加成消失。

Variants

此条目或段落的部分内容需要翻译。
您可以帮助我们翻译此页面,但请勿使用机器翻译

Variants of NetHack based on NetHack 3.4.3 and earlier versions may or may not fix the bug that lowers the AC granted by casting the spell of protection.

Some variants make protection into a monster spell available to monsters that can clerical spells.

SLASH'EM

In SLASH'EM, the spell of protection is changed to a level 1 protection spell. Priests and Wizards cannot start with the spellbook due to changes in their starting inventory.[8][9]

This information also applies to SlashTHEM.

GruntHack

In GruntHack, some monsters can use the same set of spells as the hero, including the protection spell.

dNetHack

In dNetHack, notdNetHack and notnotdNetHack, the spell of protection is the Noble's special spell. Drow Healers of both genders can start the game having forgotten the spell of protection.

The spell of protection functions differently than in NetHack 3.4.3, with a more "flat" AC bonus based on the hero's experience level:

Experience level AC bonus
1 2
2 to 3 4
4 to 7 6
8 to 15 8
16 to 30 10

Casting the spell again while the hero already has protection granted from it resets the AC bonus to their current level—if the hero has protection from this spell, and their AC after all other adjustments is no better than 0, their AC is set to 0 before the bonus is applied, e.g. a Wizard with the minimum of 10 AC that casts the spell and gains 2 points of protection will have their AC be set to -2, rather than 8. Casting the spell while it is in effect also resets the duration that it lasts for and how long the protection takes to dissipate, which is based on the hero's skill level at the time of casting:

Casting skill 1 point wears off after
Expert 30 turns
Skilled 20 turns
Basic 15 turns
Unskilled 10 turns

The spell of protection can also be cast continuously via spell maintenance.

While the spell's AC bonuses are applied, the hero's energy regeneration rate has a penalty of 10 + 2x applied where x is the amount of protection granted from the spell. When a hero with AC better than -10 (as opposed to better than 0 like in NetHack) and protection from the spell is attacked, their spell protection is factored out from their AC before any randomization for negative AC is done, then added back onto the value afterward—the Wizard with -2 AC including 2 points from the spell in the previous example above will still have -2 AC for purposes of calculating an opponent's to-hit against them in combat, but if that Wizard instead has -14 AC including those 2 points of spell protection will have their randomized AC be either -13 or -14, rather than any value from -11 to -14.

One of the invoke effects for the Rod of Seven Parts casts the protection spell and summons several high-level vortices and elementals as temporary pets, which uses up 7 points from the artifact's current enchantment and requires a minimum enchantment of +7.

FIQHack

In FIQHack, casting the spell of protection requires that the caster is not wearing body armor.

Monsters can use the same set of spells as the hero, with skill levels to match, and can learn and utilize the protection spell.

The spell of protection can also be cast continuously via spell maintenance, similar to dNetHack and its derivatives.

EvilHack

In EvilHack, monsters can cast the protection monster spell, which grants them bonuses to AC as it does for the hero.

Hack'EM

In Hack'EM, the spell of protection is changed to a level 1 enchantment spell.

Monsters can cast the protection monster spell as in EvilHack.

引用及注释

本页面之内容基于由Dylan O'Donnell创作的攻略。原始协议条文的中文译文如下:

无论对攻略原文作修改与否,本协议授权允许对于本攻略的再发布、复制及编辑行为,唯需遵守以下条件:

  1. 所有攻略的原始贡献者须给出署名。
  2. 所有对攻略作出的修改须承认并注明出处。