Scroll of enchant armor/zh-CN

From NetHackWiki
Jump to navigation Jump to search

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

?
名称 防具附魔
外观 随机
基础价 80 zm
重量 5
墨水消耗量 8~15
怪物使用 不会被怪物使用。

防具附魔卷轴(scroll of enchant armor)是NetHack中的一种卷轴。

生成

防具附魔卷轴在随机生成卷轴中占比63⁄1000(6.3%)。

僧侣和巫师在游戏开始时获得的随机卷轴中有可能出现防具附魔卷轴[1][2]。

描述

阅读防具附魔卷轴时,它会随机选择玩家穿戴的一件防具,并根据玩家是否处于混乱状态,发挥不同的效果[3]。

如果玩家未处于混乱状态,卷轴会根据自身的BUC,改变选中的防具的附魔,若处于混乱状态,则会发动不同的效果。

在未处于混乱状态的情况下阅读防具附魔卷轴并成功改变穿戴的防具的附魔值会自动鉴定卷轴[4][5]。

附魔流程

卷轴选中目标防具后,如果该防具未因过度附魔而蒸发,卷轴便会尝试改变目标防具的附魔。

首先,计算该卷轴的“基础强度”值。该值的计算公式为4 - s2,s为目标防具当前的附魔值,如果卷轴被诅咒,则取s的相反数[6][7]。每满足下列一个条件,便将基础强度值增加1[8]:

若得到的基础强度值小于或等于0,则将其设为0,然后,有1⁄X的概率将该值设为1,X为目标防具当前的附魔值[10]。最后,计算实际的附魔值改变量:如果基础强度为0,则改变量为0,否则取1到基础强度之间的一个随机值(最大为11)作为改变量,如果卷轴被诅咒,将改变量取相反数[11][12]。卷轴在改变防具附魔同时,会根据自身BUC发动其他效果:

  • 如果目标防具非诅咒,被诅咒的卷轴会诅咒该防具[13][14]。
  • 如果目标防具非祝福,受祝福的卷轴会祝福该防具[15][16]。
  • 如果目标防具被诅咒,未诅咒的卷轴会解除该防具的诅咒[17][18]。

若用非诅咒的卷轴将防具的附魔提升到高于“安全”阈值的水平,游戏有可能输出特殊的消息,对于前文所述的特殊防具,该消息必定出现,对于其他防具,该消息有1⁄7的概率出现[19][9][20]。完成防具附魔的改变后,游戏会将防具的附魔值限制在-99到+99的区间[21][22]。

值得一提的是,如果用卷轴对附魔值为+5或更高的防具继续提升附魔,卷轴的基础强度值计算将涉及到负数的整数除法,结果可能会因编译和运行环境的不同而有差异:C99编译器的整数除法采用向0舍入的策略(换句话说,进行负数除法时结果向上取整),但其他编译器可能会采用一律向下取整的策略,这便会造成附魔结果的差异。下表列出在编译器采取向0舍入策略的前提下,非诅咒的卷轴对防具附魔的提升效果(“额外加成”即上文提及的满足特定条件时对基础强度的加成):

防具当前附魔 额外加成
0 1 2 3
−3到−2 1~3 1~4 1~5 1~6
−1到0 1~2 1~3 1~4 1~5
+1到+2 1 1~2 1~3 1~4
+3到+5 0~1 1 1~2 1~3
+6到+7 0~1 1 1~2
+8到+9 0~1 1

附魔龙鳞

如果卷轴选择的目标是龙鳞,且目标防具没有因过度附魔而蒸发,则会将其转化为同色的龙鳞甲[23]。此过程中,受祝福的卷轴会将龙鳞的附魔值增加1,并祝福之,未诅咒的卷轴不会改变龙鳞的附魔,但会解除其诅咒[24]。被诅咒的卷轴也能转化龙鳞,但只有在龙鳞的附魔不低于-6时才会成功。

蒸发

在非混乱状态下阅读防具附魔卷轴时,如果卷轴选择了玩家穿戴的防具为目标,游戏会在附魔流程开始前,依照防具当前的附魔值,先进行是否蒸发的检定[6]:如果卷轴非诅咒,且目标防具的附魔为+4或更高,或是卷轴被诅咒,且目标防具的附魔为-4或更低,那么该防具有X - 1X的概率被蒸发,从而被摧毁,X为防具当前附魔值的绝对值(换言之,防具有1⁄X的概率不蒸发)[25][26]。如果目标防具是巫师帽且玩家的职业是巫师,或者目标防具是精灵族防具,则蒸发的阈值对于非诅咒卷轴为+6,对于被诅咒卷轴为-6[27][9]。

这意味着大多数的防具在附魔值不高于+3的情况下才能安全地提升附魔,而前文所述的特殊防具在附魔值不高于+5的情况下才能安全地提升附魔[9][6][26]。

未穿戴防具时

若玩家在未穿戴任何防具的情况下阅读防具附魔卷轴,则会锻炼自身的力量和体质,如果卷轴被诅咒,则改为损害这些属性值。此时若卷轴未鉴定,游戏会请求玩家对卷轴进行类型命名[28]。

混乱状态

若在混乱状态下阅读防具附魔卷轴,则卷轴的效果改为影响选中的防具的侵蚀损伤状态[29]:非诅咒的卷轴会完全修复目标防具的所有侵蚀损伤,并为其施加防侵蚀属性。被诅咒的卷轴则会移除防具的防侵蚀属性,且不会修复损伤[30]。

该效果不改变防具的附魔,防具不会蒸发。

策略

以下信息基于近期发布的稳定版本(NetHack 5.0.0),随着游戏策略不断开发、漏洞陆续发现并修复,相关内容会随之调整。

防具附魔卷轴的机制在新版本里进行了重做。

防具附魔卷轴在前中期是玩家补全自身装备构筑时的关键道具。如同武器附魔卷轴那样,你可能需要先将卷轴积攒起来,直到遇到适合用到通关的装备为止。有时你也需要根据自身的实际情况来决定需要优先附魔的部位防具,例如说,如果你还没有抵御变形陷阱的手段,那么就不要优先附魔躯干部位的防具。

由于卷轴会随机选择一件穿戴的防具作为目标,阅读前建议只留下需要优先附魔的防具,将其他防具脱掉。

在卷轴有限的情况下,可优先考虑为附魔值较低的防具附魔,这样有机会提升更多的附魔值,以提升更多的总防御力。像精灵皮帽这样的非魔法精灵族防具是优质选择。

如果你需要将+4的防具的附魔安全提升到+5以上,你可以利用诅咒的卷轴将+4防具的附魔降低以重新附魔。不过,最好还是用吸血法术降低附魔,这样就不需要消耗卷轴。

由于精灵族防具的安全附魔值上限更高,因此也有玩家会收集大量的精灵防具,将它们附魔到高等级后,批量变形为其他防具,以追求更高的总防御力。防具附魔卷轴有时也可以让你省下一次用于获取龙鳞甲的许愿。若你想获取你需要的颜色的龙鳞甲,你可以反向灭绝对应的龙来获取龙鳞。

若要为防具添加防侵蚀效果,由于书写防具毁坏卷轴消耗的墨水更少,因此资源有限的情况下诅咒的防具毁坏卷轴是更优解,除非你需要修复防具已有的损伤。

历史

防具附魔卷轴最初于Jay Fenlason's Hack的衍生作品Hack 1.21和Hack for PDP-11出现,也是Hack 1.0中最初加入游戏的物品之一。防具附魔卷轴可用于制作龙鳞甲的机制最初于NetHack 3.1.0加入。

在NetHack 3.6.0中,由于某个漏洞,被诅咒的防具无法被防具附魔卷轴解除诅咒,该漏洞于NetHack 3.6.1修复。

在NetHack 3.6.7及更早版本中,防具附魔卷轴提升防具附魔的机制和现版本有所不同[31]:

  • 非诅咒的卷轴以附魔值小于+9的防具为目标时,如果防具没有蒸发:
    • 祝福的卷轴会为防具增加1点或多点附魔(详情见下表),并祝福防具[32][33]。
    • 未诅咒的卷轴会为防具增加1点附魔,并解除其诅咒[34][35]。
  • 受诅咒的卷轴会降低防具1点附魔,并诅咒防具[36][37]。
  • 非诅咒的卷轴以附魔值为+9更高的防具为目标时,如果防具没有蒸发,则有1⁄附魔值的概率为防具增加1点附魔,否则无事发生[38]。

下表展示受祝福的卷轴以不同附魔值的防具为对象时增加的附魔值范围:

防具当前附魔值 −3到−1 0到+2 +3到+5 +6到+8 +9或更高
增加的附魔值范围 1到5 1到4 1到3 1到2 0到1

根据commit 3edd07b2,NetHack 5.0.0中,防具附魔的提升机制修改为与现版本相同。

消息

防具附魔卷轴发挥效果时输出的消息根据玩家是否处于失明状态而有所不同。

未失明

你的<防具>在<片刻间/一段时间内>发出<银色>光芒。(Your <armor> glows <silver> for a <moment/while>.)
你阅读了防具附魔卷轴,提升了穿戴的防具的附魔值。如果防具的附魔值提升量大于1,则“片刻间”会被替换为“一段时间内”[39]。如果防具自身的颜色是银色(例如银龙鳞甲或反射之盾),则消息中的“银色”一词会被略去[40][41]。
你的<防具>在片刻间发出<黑色>光芒。(Your <armor> glows <black> for a moment.)
你阅读了诅咒的防具附魔卷轴,降低了穿戴的防具的附魔值[39]。如果防具自身的颜色是黑色,则消息中的“黑色”一词会被略去[42][41]。
你的<颜色>龙鳞融合并硬化了!(Your set of <color> dragon scales merges and hardens!)
你阅读了防具附魔卷轴,将龙鳞转化成了龙鳞甲[43]。
你的<防具>突然意外地振动。(Your <armor> suddenly vibrates unexpectedly.)
你阅读了防具附魔卷轴,将防具的附魔提升到高于安全限制的数值[20]。
你的<防具>在一段时间内剧烈地发出<银色/黑色>光芒,然后蒸发了。(Your <armor> violently glows <silver/black> for a while, then evaporates.)
你对附魔值过高(或过低)的防具使用非诅咒(或被诅咒)的卷轴,导致其蒸发[25]。如果防具自身的颜色和发出的光颜色一致,则消息中的颜色描述会被略去[44][40][42]。
你的<防具>在片刻间剧烈地发出<银色>光芒。(Your <armor> violently glows <silver> for a moment.)
你试图为高附魔值的防具提升附魔,防具没有蒸发,但未成功提升附魔[45][41]。
你的<防具>被闪烁的金色<防护物/膜>覆盖了!(Your <armor> is covered by a shimmering golden <shield/layer>!)
你在混乱状态下阅读了非诅咒的防具附魔卷轴,为防具添加了防侵蚀效果[46]。如果目标防具是盾牌,则消息中的“防护物”一词会被替换为“膜”。
你的<防具>看起来像新的一样好!(Your <armor> looks as good as new!)
同上,同时防具的侵蚀损伤被卷轴修复[30]。
你的<防具>被斑驳的黑色光芒所覆盖!(Your <armor> is covered by a mottled black glow!)
你在混乱状态下阅读了诅咒的防具附魔卷轴,移除了防具的防侵蚀效果[46]。
你的皮肤发光并消退。(Your skin glows then fades.)
你在未穿戴防具时阅读了防具附魔卷轴[47]。
你片刻有一种奇怪的感觉,然后消失了。(You have a strange feeling for a moment, then it passes.)
同上,但你的角色是新手,该消息在角色失明时不会有变化。
你片刻有一种普通的感觉,然后消失了。(You have a normal feeling for a moment, then it passes.)
同上,但你的角色是新手,且处于幻觉状态,该消息在角色失明时不会有变化。

失明

你的<防具>振动了<片刻/一段时间>。(Your <armor> vibrates for a <moment/while>.)
你阅读了防具附魔卷轴,提升(或降低)了穿戴的防具的附魔值。如果防具的附魔值变化量大于1,则“片刻”会被替换为“一段时间”[48][39]。
你的<防具>突然再一次振动。(Your <armor> suddenly vibrates again.)
你阅读了防具附魔卷轴,将防具的附魔提升到高于安全限制的数值[20]。
你的<防具>剧烈地振动了一段时间,然后蒸发了。(Your <armor> violently vibrates for a while, then evaporates.)
你对附魔值过高的防具使用非诅咒的卷轴,或对附魔值过低的防具使用诅咒的卷轴,导致其蒸发[25][44][40][42]。
你的<防具>剧烈地振动了片刻。(Your <armor> violently vibrates for a moment.)
你试图为高附魔值的防具提升附魔,防具没有蒸发,但未成功提升附魔[45][41]。
你的<防具>在片刻间感觉温暖。(Your <armor> feels warm for a moment.)
你在混乱状态下阅读了防具附魔卷轴,为防具添加(或移除)了防侵蚀效果[49]。
你的<防具>感觉像新的一样好!(Your <armor> feels as good as new!)
同上,同时防具的侵蚀损伤被卷轴修复[30]。
你的皮肤片刻间感觉温暖。(Your skin feels warm for a moment.)
你在未穿戴防具时阅读了防具附魔卷轴[47]。

Variants

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

NetHack variants created prior to NetHack 5.0.0 may retain the scroll of enchant armor's behavior from previous versions and apply further changes to that specific behaviour, which commonly includes the ability to choose the armor targeted. NetHack variants may also add more types of armor that can be safely enchanted from higher and/or more varied enchantment thresholds, whether the enchantment is done by any hero that reads the scroll (as with elven armor) or by a hero of a certain role and/or starting race (as with the cornuthaum).

Dragon-scaled armor is a feature included in many variants as a replacement for dragon scale mail, and is created by reading a non-cursed scroll of enchant armor while wearing a suit of armor with dragon scales (which is moved to the cloak slot) over them, merging the scales into that armor.

SLASH'EM

In SLASH'EM, the scroll of enchant armor behaves as it does in NetHack 3.4.3 and prior contemporary versions, which is also different from some of the predecessors to SLASH'EM.[50][51] There is also a spellbook of enchant armor that teaches a spell which behaves similarly to an uncursed scroll.[52]

Valkyries can use the scroll to safely enchant gauntlets of power from +5.[53]

UnNetHack

In UnNetHack, the scroll of enchant armor behaves as it does in NetHack 3.4.3.

Archeologists can safely enchant a worn fedora from a maximum of +5.

dNetHack

In dNetHack, notdNetHack and notnotdNetHack, the scroll of enchant armor behaves as it does in NetHack 3.4.3 on a basic level, but has several different effects on various types of armor. For example, a hero that reads a non-cursed scroll of enchant armor while confused and targets worn dragon scales will convert them into a dragon scale shield instead of dragon scale mail. Various types of armor can also be enchanted safely from +5 or other thresholds.

EvilHack

In EvilHack, the scroll of enchant armor behaves as it does in NetHack 3.6.7 on a basic level: reading an identified scroll of enchant armor allows the hero to manually select which armor to enchant, and if they are riding a steed wearing barding, they can also enchant that steed's barding as well.

EvilHack also utilizes dragon-scaled armor, with several related changes to the scroll's functions:

  • Reading a scroll of enchant armor while wearing body armor under dragon scales fuses them together, increasing that armor's base AC by 5 and causing it to grant the primary extrinsic property of the scales, along with additional secondary properties exclusive to the dragon-scaled armor. The armor's enchantment itself does not change normally, and any enchantment on the scales is discarded.
    • If the scroll is blessed, the body armor is also blessed and has its erosion repaired.
    • If the scroll is cursed, the body armor becomes cursed and loses a point of enchantment.
    • If the scroll is read while the hero is confused, the scales meld into the armor before the armor melds into the hero, polymorphing them into the corresponding dragon. Dragon-scaled armor is not destroyed or separated into its components from polymorphing this way, and reverts back to normal whenever the hero returns to normal form.
  • Reading the scroll while wearing dragon-scaled armor with a different color of dragon scales over it will remove the old scales in favor of the new set.
  • If the scroll is read while wearing dragon scales without body armor underneath, the hero will polymorph into the corresponding dragon unless they have polymorph control. Wearing a shirt does not affect this process. The scroll causes the polymorph to last longer if it is blessed, and shortens the duration if it is cursed.

The Hand of Vecna can be enchanted safely from +5, and attempts to enchant it further will not ever evaporate it: the enchantment instead has the same chance of simply failing without any further effect.

另请参阅

引用及注释

  1. ↑ src/u_init.c in NetHack 5.0.0, line 104
  2. ↑ src/u_init.c in NetHack 5.0.0, line 173
  3. ↑ src/read.c in NetHack 5.0.0, line 1114-L1290
  4. ↑ src/read.c in NetHack 5.0.0, line 1244
  5. ↑ src/read.c in NetHack 5.0.0, line 1280
  6. ↑ 6.0 6.1 6.2 src/read.c in NetHack 5.0.0, line 1178
  7. ↑ src/read.c in NetHack 5.0.0, line 1191-L1201: 为防止整数溢出,如果s低于-100,则设为-100
  8. ↑ src/read.c in NetHack 5.0.0, line 1203-L1210
  9. ↑ 9.0 9.1 9.2 9.3 src/read.c in NetHack 5.0.0, line 1165-L1166
  10. ↑ src/read.c in NetHack 5.0.0, line 1212-L1215
  11. ↑ src/read.c in NetHack 5.0.0, line 1216-L1220
  12. ↑ src/read.c in NetHack 5.0.0, line 1222-L1223
  13. ↑ src/read.c in NetHack 5.0.0, line 1264-L1265
  14. ↑ src/mkobj.c in NetHack 5.0.0, line 1782-L1819
  15. ↑ src/read.c in NetHack 5.0.0, line 1266-L1267
  16. ↑ src/mkobj.c in NetHack 5.0.0, line 1744-L1764
  17. ↑ src/read.c in NetHack 5.0.0, line 1268-L1269
  18. ↑ src/mkobj.c in NetHack 5.0.0, line 1821-L1838
  19. ↑ src/read.c in NetHack 5.0.0, line 1164
  20. ↑ 20.0 20.1 20.2 src/read.c in NetHack 5.0.0, line 1286-L1289
  21. ↑ src/read.c in NetHack 5.0.0, line 1276
  22. ↑ src/read.c in NetHack 5.0.0, line 78-L86: 限制附魔值是为了防止整数溢出现象,实际游戏中极难达成该水平的附魔
  23. ↑ src/read.c in NetHack 5.0.0, line 1225-L1252
  24. ↑ src/read.c in NetHack 5.0.0, line 1237-L1243
  25. ↑ 25.0 25.1 25.2 src/read.c in NetHack 5.0.0, line 1177-L1190
  26. ↑ 26.0 26.1 src/read.c in NetHack 5.0.0, line 1179
  27. ↑ src/read.c in NetHack 5.0.0, line 1119
  28. ↑ src/read.c in NetHack 5.0.0, line 1127-L1135
  29. ↑ src/read.c in NetHack 5.0.0, line 1136-L1163
  30. ↑ 30.0 30.1 30.2 src/read.c in NetHack 5.0.0, line 1151-L1155
  31. ↑ src/read.c in NetHack 3.6.7, line 1101-L1106
  32. ↑ src/read.c in NetHack 3.6.7, line 1104-L1105
  33. ↑ src/read.c in NetHack 3.6.7, line 1138-L1139
  34. ↑ src/read.c in NetHack 3.6.7, line 1106
  35. ↑ src/read.c in NetHack 3.6.7, line 1140-L1141
  36. ↑ src/read.c in NetHack 3.6.7, line 1101
  37. ↑ src/read.c in NetHack 3.6.7, line 1136-L1137
  38. ↑ src/read.c in NetHack 3.6.7, line 1102-L1103
  39. ↑ 39.0 39.1 39.2 src/read.c in NetHack 5.0.0, line 1253-L1259
  40. ↑ 40.0 40.1 40.2 src/read.c in NetHack 5.0.0, line 1170-L1173
  41. ↑ 41.0 41.1 41.2 41.3 src/read.c in NetHack 5.0.0, line 1257-L1258
  42. ↑ 42.0 42.1 42.2 src/read.c in NetHack 5.0.0, line 1167-L1169
  43. ↑ src/read.c in NetHack 5.0.0, line 1230
  44. ↑ 44.0 44.1 src/read.c in NetHack 5.0.0, line 1184-L1185
  45. ↑ 45.0 45.1 src/read.c in NetHack 5.0.0, line 1254
  46. ↑ 46.0 46.1 src/read.c in NetHack 5.0.0, line 1145-L1149
  47. ↑ 47.0 47.1 src/read.c in NetHack 5.0.0, line 1128-L1130
  48. ↑ src/read.c in NetHack 5.0.0, line 1174-L1175
  49. ↑ src/read.c in NetHack 5.0.0, line 1140-L1142
  50. ↑ read.c in SLASH'EM 0.0.7E7F2, line 871
  51. ↑ read.c in SLASH'EM 0.0.7E7F2, line 947
  52. ↑ read.c in SLASH'EM 0.0.7E7F2, line 870
  53. ↑ read.c in SLASH'EM 0.0.7E7F2, line 913