Container/zh-CN
NetHack 中文 Wiki 需要您的帮助!
了解如何帮助我们完善Wiki
容器(container)是NetHack中的一类用于存储物品的工具。
容器列表
| 名称 | 重量 | 材料 | 基础价(zm) |
|---|---|---|---|
| 布袋 | 15 | 布 | 2 |
| 次元袋 | 15 | 布 | 100 |
| 防水袋 | 15 | 布 | 100 |
| 大盒子 | 350 | 木头 | 8 |
| 箱子 | 600 | 木头 | 16 |
| 冰盒子 | 900 | 塑料 | 42 |
魔术袋在游戏的源代码中也被定义为容器类对象,但它实际上并不能用来存放物品,因此一般不被归类为容器[1]。雕像类物品也有存储物品的能力,但它们一般也不被当作容器。
生成
除去在陷阱上生成的假骨档里的容器外,所有容器类物品生成时都是未诅咒的。容器在生成时有可能内含一定量的随机物品,见下表[2]:
| 容器 | 内容物数量 | 可上锁? |
|---|---|---|
| 布袋 | 0~1 | 否 |
| 次元袋 | 0~1 | 否 |
| 防水袋 | 0~1 | 否 |
| 大盒子 | 0~5 | 是 |
| 箱子 | 0~7 | 是 |
| 冰盒子 | 0~20具尸体 | 否 |
所有可上锁的容器生成时有4⁄5的概率是上锁状态,且有1⁄10的概率安装有容器陷阱[3]。
除冰盒子之外的容器内的随机物品中,各类别物品的概率如下[4]:
| 类别 | 概率 |
|---|---|
| 宝石/石头 | 18% |
| 可食用品 | 15% |
| 药水 | 18% |
| 卷轴 | 18% |
| 魔法书 | 12% |
| 金币 | 7% |
| 魔杖 | 6% |
| 戒指 | 5% |
| 护身符 | 1% |
容器内生成的随机物品遵循以下的特殊规则[5]:
部分职业的角色的起始物品里也可能出现容器,角色起始物品里的容器必定是空的。
描述
容器的主要作用是存取物品。所有容器都没有存储空间的限制,可以存放任意数量的物品。
运用容器的方法有数种:对于放置在地面上的容器,玩家可以输入搜刮(#loot)命令来对容器进行存取;对于放置在玩家物品栏里的容器,玩家可以输入使用a命令来对容器进行存取;无论容器是放置在地面还是玩家的物品栏,玩家都可以输入倾倒(#tip)命令来直接将容器内的全部物品倒在地面上,在飘浮状态下倒出容器里的物品会导致倒出的易碎物品被摔碎。
容器存放物品时会受到以下限制:
部分容器可以被上锁。被上锁的容器需要解锁或破坏锁后才能存取物品。玩家可以利用开锁工具、解锁魔杖或敲击法术来解开容器的锁,也可以通过脚踢或撬锁命令破坏容器的锁。破坏容器的锁需要承担一定风险:用脚踢破坏锁有可能导致容器里的易碎物品被摧毁;通过撬锁命令破坏锁时,玩家会尝试利用手中的武器撬锁,用锐器撬锁会锻炼敏捷,但有可能导致武器损毁,用钝器撬锁会锻炼力量,但有可能摧毁容器及其内容物。被破坏的容器锁可以被上锁魔杖、解锁魔杖、巫师锁法术或敲击法术的效果修复[6]。可上锁的容器在生成时有可能拥有容器陷阱,容器陷阱可能会在玩家为容器上锁、解锁或打开容器时触发,也可能会在玩家试图解除陷阱但失败时触发。
所有容器都能够保护其内容物免受火焰、寒冷、电击和取消效果的影响。为容器上油可以暂时保护容器内的物品免受潮湿的影响,赋予容器防火属性能够让容器接触熔岩时不会被摧毁(容器无法被直接赋予防火属性,但玩家可以将具有防侵蚀属性的其他工具变形成防火的容器)[7]。
如果容器被变形,无论它被变成何种物品,其内存放的物品都会消失。
怪物会捡起容器,但它们不会使用容器,因此也不会与容器里的物品交互。但黏胶立方怪能够食用有机物材料制成的容器,并吞噬其内容物(但不会消化掉它们)。如果玩家变形为黏胶立方怪,其只能食用空容器。
以下内容涉及即将到来的版本(NetHack 3.7.0)之信息。如果该版本已发布,请验证此处信息是否准确,并作出相应修改,以将其并入页面。
根据commit b12ea03d,现在怪物能够取走容器内的物品,也能使用开锁工具开启容器的锁。策略
容器可以用作安全的物品贮藏点,像袋子这样较为轻便,方便随身携带的容器则可以带在身上,增加可携带的物品数量。
不少玩家会选择携带两只袋子,一只是用于存放大部分物资的次元袋,另一只则是非次元袋的任意袋子,用于存放像取消魔杖这样不能放入次元袋的物品,以及圣水、解除诅咒卷轴和恐吓怪物卷轴之类用于应急的物品(遇到紧急情况时,可以直接将这些物品从袋子里倒出来使用)。
历史
冰盒子最初于Hack 1.0加入游戏,其他的容器最初于NetHack 3.0.0加入。
在NetHack 3.2.0及更早版本中,有一种被称为“踢箱鉴定法”的技巧,可以用于区分贵重宝石和无价值的玻璃:只需要将所有未鉴定的宝石放入盒子,然后用脚反复踢,最后保留下来没有被击碎的宝石即是贵重宝石,自NetHack 3.2.0开始,毫无价值的玻璃无法被摔碎,使得此鉴定手段不再可用。
从NetHack 3.6.0开始,玩家可以利用倾倒命令倒出容器里的物品。
消息
- 你听见模糊的破碎声。(You hear a muffled shatter.)
- 你因脚踢或投掷容器而损坏了里面的物品。
- 你听见模糊的碎裂声。(You hear a muffled cracking.)
- 同上,但被破坏的物品里有至少一个蛋。
- 那会是一个有趣的拓扑学练习。(That would be an interesting topological exercise.)
- 你试图将一件容器存入它自身。
Variants
此条目或段落的部分内容需要翻译。
您可以帮助我们翻译此页面,但请勿使用机器翻译。
Some variants of NetHack add new containers, while others may change how certain containers function - a common quality-of-life addition is to allow identifying the beatitude of a container's contents by dropping it on an altar. The magic chest is also a common addition to many variants, with each one implementing it differently (e.g. it may be an item or a dungeon feature). Other common changes include giving monsters the ability to utilize containers like a player character can, as well as enabling a bag of tricks to carry items under certain circumstances.
Variants that implement object materials may alter a container's properties based on its material.
SLASH'EM
SLASH'EM adds the medical kit, a container that can only hold pills, bandages and phials and cannot be refilled - the medical kit must be looted from the ground in order to view its contents, and applying one will instead take a random pill from the kit and consume it.
SporkHack
SporkHack introduces a maximum carrying capacity for containers, with the default being 1000 aum; large boxes can carry 3000 aum worth of items, while ice boxes, chests and bags of holding have unlimited carrying capacity. SporkHack also adds a couple of new containers:
- Iron safe, which has unlimited carrying capacity and can only be locked and unlocked by magic or stethoscope
- small sack, which has only 200 aum of carrying capacity
The bag of poo is an object that is defined as a container but cannot be used to store items, similar to the bag of tricks.
UnNetHack
UnNetHack adds the iron safe from SporkHack, and makes the bag of tricks usable as a container once it runs out of charges.
AceHack
In AceHack, placing a container on an altar identifies the beatitude of the container and its contents. Monsters are also capable of looting containers, can carry items in bags, and will take out items from their container to use.
dNetHack
dNetHack, notdNetHack and notnotdNetHack add three new containers:
- sarcophagus
- magic chest, which is implemented as an item that appears in set locations, can generate randomly and can even be wished for.
- writing desk
The massive stone crates that replace the boulders in Sokoban combine the properties of a container and a boulder (as they are filled with food), but cannot be used as a proper container.
Placing a container on an altar identifies the beatitude of the container and its contents.
Maids that pick up lockable containers with broken locks will mend them.
DynaHack
DynaHack includes the iron safe from SporkHack, and adds the magic chest as a dungeon feature that is generated at fixed points in the dungeon and shares its contents across each magic chest.
NetHack Fourk
NetHack Fourk adds the magic chest as a dungeon feature that contains randomized items suited to a character's current role - magic chests can be created in any location by reading a scroll of consecration while confused.
FIQHack
In FIQHack, monsters are capable of looting containers and will carry and use items in bags. The Castle chest is special-cased to prevent monsters from stealing the guaranteed wand of wishing.
FIQHack also adds the magic chest as an item that behaves like a dungeon feature similar to DynaHack and Nethack Fourk: they cannot be picked up, teleported, polymorphed, etc. Minetown, Sokoban, the Castle, Orcus-town, and the Quest home level all have magic chests, and magic chests can be created by wishing for one.
TNNT (the game)
TNNT (the game) adds the swap chest, a magic container that enables players to exchange objects between games.
xNetHack
In xNetHack, monsters are capable of looting containers and will carry and use items in bags, and placing a container on an altar identifies the beatitude of the container and its contents.
SpliceHack
In SpliceHack, the bag of rats is defined as a container but cannot actually be used as one, similar to the bag of tricks.
EvilHack
EvilHack includes the iron safe from SporkHack, and magic chests are implemented as dungeon feature-like objects similar to DynaHack, and are generated at fixed locations in the dungeon - there are also special magic keys that are required to lock and unlock the chest. EvilHack also adds the crystal chest, a type of container that can only be unlocked or locked through magical means and is immune to other forms of magic.
Monsters are capable of looting containers and will carry and use items in bags, and placing a container on an altar identifies the beatitude of the container and its contents.
Many containers can be made of various materials, and can be made erosion-proof by wielding one and reading a non-cursed scroll of enchant weapon while confused.
SlashTHEM
In addition to SLASH'EM details, SlashTHEM adds two new containers:
- Ugly backpack, which effectively the same as a sack
- Bag of digestion, which causes some of its contents to vanish when used
Hack'EM
Hack'EM includes the medical kit from SLASH'EM, the iron safe from SporkHack, and the crystal chest from EvilHack, and allows the bag of tricks and bag of rats to be used as containers when out of charges. Monsters are capable of looting containers and will carry and use items in bags, and placing a container on an altar identifies the beatitude of the container and its contents.