Bag of holding/zh-CN

From NetHackWiki
Jump to navigation Jump to search

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

(
名称 次元袋
外观 袋子
基础价 100 zm
重量 15
材料 布
怪物使用 怪物会将其用作杂项物品。

次元袋(bag of holding)是NetHack中的一种容器类工具。它由布制成,未鉴定时外观为袋子。

生成

主条目:容器#生成

次元袋在随机生成工具中占比1⁄50(2%)。

次元袋随机生成时可能会装有一个随机物件[1][2],该物件不可能是次元袋、魔术袋或取消魔杖[3]。

仓库番顶层谜题的奖励房间中,有一定概率生成一只次元袋。生成概率由房间的关卡类型决定:仓库番4a关卡中生成次元袋的概率为3⁄4,仓库番4b关卡中生成次元袋的概率为1⁄4[4][5]。该次元袋会在关卡末尾的宝藏动物园后方的三个小隔间内的随机一个内生成,其所在的位置会有一张被诅咒的恐吓怪物卷轴和烧写在地面的“Elbereth”[6][7][8][9]。

描述

和大多数容器一样,次元袋会保护装入的物品不受火焰、寒冷、电击和取消的影响,除此以外,它还能保护装入的易碎物品不被摔碎。掩埋在地下的次元袋会随时间推移逐渐腐烂消失,直到自身消失前,其可以保护其内的有机物材料物品不受腐烂影响。

拥有智能,有手,且有收集物品行为的敌对怪物能够捡起次元袋,并搜刮其内的物品。黏胶立方怪能够食用次元袋[10][11],但不会消化仓库番顶层的奖励次元袋,直到玩家捡起过它为止[12],变形为黏胶立方怪的玩家也能食用次元袋,但只有当袋子是空的时才能如此作[13]。

改变重量

次元袋拥有一项独特的性质:它会改变存入的物品的总重量,具体效果根据次元袋的BUC而定,见下表(下表公式中cwgt是次元袋内容物的原重量)[14]:

BUC 总重量
祝福 15+(cwgt4+1)
未诅咒 15+(cwgt2+1)
诅咒 15+(cwgt×2)

表中的数字“15”即为次元袋本身的重量。每当玩家往次元袋里存放或取出物品,或是次元袋的BUC发生变化时,次元袋的总重量都会立即重新计算[15][16][17][18][19]。

每次玩家搜刮、使用或倾倒被诅咒的次元袋时,其内容物中的每个物件都有1⁄13的概率消失。以此法使商店里出售的物品消失会增加玩家的欠款[20][21][22][23]。

次元袋的爆炸

将特定物品装入次元袋会导致其爆炸,对玩家造成6d6点伤害,摧毁次元袋及导致其爆炸的物品[24][25],袋子的内容物中,1⁄13的物品会被摧毁,其余的物品会随机向四周飞散(易碎材料的物品会受到冲击,并可能破裂或损毁),被飞散的物品击中的怪物会进入敌对状态。

以下物品会引发次元袋爆炸[26]:

次元袋的嵌套

若先在会导致次元袋爆炸的物品外面套上多层布袋或防水袋,再放入次元袋,则能够降低发生爆炸的概率。爆炸的概率与袋子嵌套的层数有关,见下表[29]:

布袋数量 发生爆炸的概率 成功概率
0 1/1 0
1 2/2 0
2 3/4 0.25
3 4/8 0.5
4 5/16 0.6875
5 6/32 0.8125
6 7/64 0.890625
7 8/128 0.9375
8 9/128 0.9296875
n (n>6) (n+1)/128

根据表中公式,次元袋和能够引爆次元袋的物品之间的袋子层数达到7层时,爆炸的概率达到极小值(6.25%),继续增加袋子层数反而会提高爆炸概率。

如果以此方法将一个次元袋放入另一个次元袋,则两个袋子的效果会以累乘的方式叠加,例如若两个袋子都是受祝福的,则内层的次元袋里的物品总重量会被减少到1⁄16。

策略

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

次元袋爆炸的机制发生变更,相关的策略会受到较大的影响。

次元袋能够大大增加玩家能够携带的物资量,因此是飞升套件的重要组成部分。次元袋能够为其内容物抵御各种损伤,但无法抵御潮湿效果——你可以为次元袋上油,或是将它装入防水袋来补足这一缺陷。

若需要鉴别某个袋子是否是次元袋,你可以在鉴别其BUC,确定其为非诅咒后,在身上携带足够多的物品,让自身刚好进入负担状态,然后将一些较重的物品放入携带的袋子,观察自己的负重状况是否有变化。

物品管理

由于次元袋有爆炸的风险,部分玩家会选择再携带一只布袋来存放一些比较珍贵,或者会引爆次元袋的物品。

你可以将次元袋也存入一个布袋,来防止次元袋被诅咒物品的魔法效果影响,不过,这会使得你从次元袋取出物品花费的时间增加。

处理被诅咒的次元袋

如果你在骨档里发现次元袋,它很有可能是被诅咒的,这会导致它重量过高,难以捡起,且直接搜刮它会导致里面的部分物资消失,若想要完好回收里面所有的物品,你需要先解除它的诅咒。你可以先尝试把次元袋捡起,如果能够捡起来,就可以利用圣水或解除诅咒的手段解除袋子的诅咒,如果无法捡起,你可以直接对袋子挥动取消魔杖,这会将袋子变为未诅咒状态,不会有其他影响。

如果没有取消手段,也无法捡起袋子,你可以直接对袋子使用倒出操作——这仍然会导致部分内容物消失,但可以最大限度地抢救剩余的东西,而不用担心自己的物品栏装不下。

还有一种抢救手段是让黏胶立方怪吃下次元袋:这样会损失袋子,但里面的所有物品都能暂时安全地保留,只需及时杀死怪物就可以回收。

避免次元袋爆炸

只要不发生误操作,将其他次元袋或者魔术袋放进次元袋的行为是容易避免的,要避免取消魔杖进入次元袋相对就没那么容易。出于保险考虑,不要将任何没有鉴定的魔杖放进次元袋,获得新魔杖后要第一时间进行刻写鉴定,如果某魔杖在刻写时会使得地面上已有的文字消失,则它就有可能是取消魔杖,要特别留意。

通常来说,不建议携带不需要使用的魔术袋或多余的次元袋,这样可以避免往次元袋存放物品时出现误操作炸掉次元袋的概率。

处理嵌套的次元袋

根据前文所述,将次元袋放入多层嵌套的布袋或防水袋内部,即可降低其被放入另一个次元袋时爆炸的概率。一般来说,此机制最实用的用途是利用嵌套次元袋的减重效果,携带大量不需要频繁存取的金币、宝石等贵重物品,以提高游戏结束时的得分。

如果需要嵌套更多的次元袋,下表展示了嵌套层数和不发生爆炸的概率的关系:

次元袋个数 间隔的布袋数量 成功概率
2 7 0.9375
3 7,7 0.769042...
4 7,7,7 0.512570...
5 7,7,7,7 0.256222...
6 7,6,6,6,7 0.0935839...
7 7,6,5,5,6,7 0.0236287...
...
43 3,2,2, ... ,2 非常小

举例说明,如果你需要嵌套3个次元袋,在每两个次元袋之间都套7层布袋(在上表里记作“7,7”),则第一次嵌套不爆炸的概率是1-(8/128),将两个嵌套的次元袋装进第三个次元袋时,每个次元袋均需进行一次概率判定,此时不爆炸的概率是(1-(8/128)) * (1-(16/128))[26][24],计算可知在整个嵌套过程中,有约23.1%的概率发生爆炸。

历史

次元袋最初于NetHack 3.0.0加入游戏。

在NetHack 3.6.7及更早版本中,次元袋在发生魔法爆炸时会摧毁其所有的内容物[30][31]。根据commit 71754910、commit 9cdcf7b2、commit 6fd51c29和commit ce1f4788,自NetHack 5.0.0开始,次元袋的爆炸机制修改为与现版本相同。

仓库番奖励

仓库番顶层的次元袋奖励出现概率在版本更新过程中有过数次调整:

起源

次元袋起源自《龙与地下城》中的同名道具。不少民间传说、神话和流行奇幻作品中都有类似设定的魔法口袋。

消息

<一件/数件>物品消失了!(<An object/Objects> <has/have> vanished!)
你使用或搜刮了被诅咒的次元袋,导致里面的物品消失[32]。
你看到<物品>消失了!(You see <an object/objects> disappear!)
同上,但消失的物品尚未被鉴定[33]。
当你放入<物品>时,你被魔法爆炸冲击!(As you put <the object/objects> inside, you are blasted by a magical explosion!)
你将特定的物品放入次元袋,导致其爆炸[34]。
当<物品>倒入其中时,你被魔法爆炸冲击!(As <the object/objects> tumble(s) inside, you are blasted by a magical explosion!)
同上,但物品是通过倾倒的方式从其他容器转移到次元袋的[35]。

Variants

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

NetHack variants may allow monsters to utilize bags of holding and other containers, and some of them may change how the bags function: a common quality-of-life addition is to allow placing a bag of holding or other container on an altar to identify the beatitude of both the container and its contents. In variants that are based on versions prior to NetHack 5.0.0, another common quality-of-life addition specific to the bag of holding involves changing its explosion to not completely destroy the former bag's contents, usually opting to scatter them in the nearby area instead.

Variants that implement object materials may also alter a container's properties based on its material.

SLASH'EM

In SLASH'EM, bags of holding function as they do in NetHack 3.4.3. The Wallet of Perseus is an unaligned artifact bag of holding that has enhanced weight reduction.

Upgrading a sack successfully has a 1⁄5 chance of producing a bag of holding, while upgrading an oilskin sack successfully will always produce a bag of holding[36][37]—upgrading a bag of holding successfully will always produce an oilskin sack.[38]

Due to the ability to upgrade, the amulet of reflection is generally the more valuable Sokoban prize: there is still a 1⁄2 chance of each reward, even with the new levels introduced in the variant.

SLASH'EM has a 'showweight' option that explicitly displays the amount of weight the hero is carrying: informally identifying bags of holding is trivial with this option turned on. The Wallet of Perseus also enables informal identification of a bag of holding via the 'naming artifacts' trick.

NetHack brass

In NetHack brass, bags of holding function as they do in NetHack 3.4.3.

Sokoban offers a choice between 3 items, with one being a bag of holding.

GruntHack

In GruntHack, causing a bag of holding to explode does not destroy the contents of the bag, but scatters both them and the hero throughout the dungeon via level teleport.

Sokoban in GruntHack also offers a choice between 3 prizes, with one being a guaranteed bag of holding.

SporkHack

In SporkHack, an exploding bag of holding scatters its contents nearby, rather than destroying them outright—this will still destroy the inserted object, and fragile objects are broken as if they were thrown.

UnNetHack

In UnNetHack, exploding bags of holding react the same as in SporkHack, scattering most of its contents and destroying fragile items.

Sokoban in UnNetHack offers a choice between 3 prizes, with one being a guaranteed bag of holding.

AceHack

In AceHack, inserting a bag of tricks or a wand of cancellation inside a bag of holding will drain them of their charges rather than destroying any items inside. A hero can still destroy bags of holding by nesting them, but will receive a confirmation prompt when attempting to do so. This also applies to NetHack 4, a 'successor' variant to AceHack.

NetHack Fourk

In NetHack Fourk, Sokoban has set rewards for each of the possible maps that can appear as its final floor: Open at the Top, which is essentially a clone of Sokoban level 4a, always has a bag of holding as its prize.

xNetHack

In xNetHack, an exploding bag of holding behaves as in SporkHack and some other variants: 1⁄13 of the contents are destroyed along with the bag and inserted item, and the rest are scattered, destroying fragile items.

EvilHack

In EvilHack, an exploding bag of holding functions as in SporkHack and some other variants: 1⁄13 of the contents are destroyed along with the bag and inserted item, and the rest are scattered, destroying fragile items.

Sokoban in EvilHack offers 3 different type of prize item, and its prize tool has a 1⁄2 chance of being a bag of holding.

The Bag of the Hesperides is an artifact bag of holding similar to the Wallet of Perseus that repels water like an oilskin sack, confers protection when carried, and is made of intrinsically-fireproof dragonhide—it can only be obtained within the last floor of the Ice Queen's Realm, where it is placed inside a crystal chest within the pegasus cage.

Hack'EM

In Hack'EM, bags of holding behave as they do in EvilHack. The Wallet of Perseus is also given most of the same physical traits as the Bag of the Hesperides from EvilHack.

百科文本

"Now, this third handkerchief," Mein Herr proceeded, "has also four edges, which you can trace continuously round and round: all you need do is to join its four edges to the four edges of the opening. The Purse is then complete, and its outer surface--"
"I see!" Lady Muriel eagerly interrupted. "Its outer surface will be continuous with its inner surface! But it will take time. I'll sew it up after tea." She laid aside the bag, and resumed her cup of tea. "But why do you call it Fortunatus's Purse, Mein Herr?"
The dear old man beamed upon her, with a jolly smile, looking more exactly like the Professor than ever. "Don't you see, my child--I should say Miladi? Whatever is inside that Purse, is outside it; and whatever is outside it, is inside it. So you have all the wealth of the world in that leetle Purse!"

[ Sylvie and Bruno Concluded, by Lewis Carroll ]

引用及注释

  1. ↑ src/mkobj.c in NetHack 5.0.0, line 330-L332
  2. ↑ src/mkobj.c in NetHack 5.0.0, line 1020-L1022
  3. ↑ src/mkobj.c in NetHack 5.0.0, line 371-L379
  4. ↑ dat/soko1-1.lua in NetHack 5.0.0, line 102-L105
  5. ↑ dat/soko1-2.lua in NetHack 5.0.0, line 104-L107
  6. ↑ dat/soko1-1.lua in NetHack 5.0.0, line 29-L32
  7. ↑ dat/soko1-1.lua in NetHack 5.0.0, line 110-L111
  8. ↑ dat/soko1-2.lua in NetHack 5.0.0, line 29-L32
  9. ↑ dat/soko1-2.lua in NetHack 5.0.0, line 112-L113
  10. ↑ src/mon.c in NetHack 5.0.0, line 1400-L1401
  11. ↑ src/mon.c in NetHack 5.0.0, line 1352-L1382
  12. ↑ src/mon.c in NetHack 5.0.0, line 1551-L1555
  13. ↑ src/eat.c in NetHack 5.0.0, line 114-L118
  14. ↑ src/mkobj.c in NetHack 5.0.0, line 1936-L1955
  15. ↑ src/mkobj.c in NetHack 5.0.0, line 1757-L1758
  16. ↑ src/mkobj.c in NetHack 5.0.0, line 1776-L1777
  17. ↑ src/mkobj.c in NetHack 5.0.0, line 1805-L1806
  18. ↑ src/mkobj.c in NetHack 5.0.0, line 1831-L1832
  19. ↑ src/pickup.c in NetHack 5.0.0, line 1538-L1566
  20. ↑ src/pickup.c in NetHack 5.0.0, line 2536-L2554
  21. ↑ src/pickup.c in NetHack 5.0.0, line 2509-L2513
  22. ↑ src/pickup.c in NetHack 5.0.0, line 2801-L2822
  23. ↑ src/pickup.c in NetHack 5.0.0, line 3764-L3773
  24. ↑ 24.0 24.1 src/pickup.c in NetHack 5.0.0, line 2658-L2694
  25. ↑ src/pickup.c in NetHack 5.0.0, line 3778-L3803
  26. ↑ 26.0 26.1 src/pickup.c in NetHack 5.0.0, line 2483-L2507
  27. ↑ 27.0 27.1 src/pickup.c in NetHack 5.0.0, line 2490-L2493
  28. ↑ 28.0 28.1 28.2 include/obj.h in NetHack 5.0.0, line 339
  29. ↑ 29.0 29.1 29.2 src/pickup.c in NetHack 5.0.0, line 2495-L2505
  30. ↑ src/pickup.c in NetHack 3.6.7, line 2080-L2102
  31. ↑ src/pickup.c in NetHack 3.6.7, line 2229-L2260
  32. ↑ src/pickup.c in NetHack 5.0.0, line 2810
  33. ↑ src/pickup.c in NetHack 5.0.0, line 2812
  34. ↑ src/pickup.c in NetHack 5.0.0, line 2661-L2663
  35. ↑ src/pickup.c in NetHack 5.0.0, line 3781-L3783
  36. ↑ potion.c in SLASH'EM 0.0.7E7F2, line 2398
  37. ↑ potion.c in SLASH'EM 0.0.7E7F2, line 2401
  38. ↑ potion.c in SLASH'EM 0.0.7E7F2, line 2404