Difference between revisions of "Swap chest"

From NetHackWiki
Jump to navigation Jump to search
(Make a history section. Add a paragraph for 2023 changes. Source: github tnnt.)
(Description: Wordsmith the critical paragraph about PUTs, LOOKs, and TAKEs. Still awkward.)
 
(29 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
{{noversion}}
 
{{noversion}}
  
A '''swap chest''' is a special [[container]] in [[The November NetHack Tournament]], added in 2018. It is never randomly generated, but there is a guaranteed swap chest in [[Mines' End]] and another in the [[Valley of the Dead]]. It allows players to exchange items between games. You cannot successfully [[wish]] for a swap chest except in [[wizard mode]]; doing so creates a normal [[chest]] instead<ref>https://github.com/tnnt-devteam/tnnt/blob/c5d2fa2f4aee18b58c18c827adbd722c2830dea5/src/objnam.c#L3796</ref>.
+
A '''swap chest''' is a special [[container]] that appears in [[The November NetHack Tournament]]. It allows players to exchange objects between games.
  
In its initial state, you cannot remove objects from a swap chest; however, if the chest is empty, you can reveal that. You can place up to three objects into each swap chest, subject to restrictions (see below). Any object placed into a swap chest will be [[name]]d to include the name of the player who donated it. Once you have placed an object into a swap chest, you can look inside and remove a single object from it. Once you have done so, you can no longer place objects inside that swap chest<ref>https://github.com/tnnt-devteam/tnnt/blob/c5d2fa2f4aee18b58c18c827adbd722c2830dea5/src/pickup.c#L2658</ref>. Objects inside a swap chest will be fully identified.
+
==Generation==
 +
Swap chests are not randomly generated. There is one swap chest in [[Mines' End]] and a second swap chest in the [[Valley of the Dead]].
  
Not removing an object from a swap chest constitutes the swap-chestless [[conduct]] in TNNT.
+
For [[Mines' End]], the swap chest location depends on the level layout. In Mimic of the Mines, the swap chest is located in a small cave in the lower right. In the Gnome King Wine Cellar, the swap chest is located near the fountain in the lower left. In the Catacombs, the swap chest is located in the small room in the upper right.
  
Swap chests cannot be locked<ref>https://github.com/tnnt-devteam/tnnt/blob/cdcb59c1583e6fc7604f93cc59ffd3f6f6b441d3/src/lock.c#L386</ref> or [[Wand of probing|probe]]d<ref>https://github.com/tnnt-devteam/tnnt/blob/af9e0b8d02109c47fc2d20a709e5723fbfe10042/src/zap.c#L1934</ref>. [[Gelatinous cube|Monsters]] cannot eat the swap chest, and will be instantly killed if they attempt it. A hero polymorphed into a gelatinous cube cannot eat a swap chest either, but will not be instakilled <ref>https://github.com/tnnt-devteam/tnnt/commit/b1a639f83a05688c5c5294f1cb4e8ec7d745dac6</ref>. Swap chests cannot be picked up by heros due to their massive weight, but a tame [[nymph]] can carry it. [[Kick]]ing a swap chest before removing an object from it causes it to kick back, dealing 10-14 physical damage to you<ref>https://github.com/tnnt-devteam/tnnt/blob/af9e0b8d02109c47fc2d20a709e5723fbfe10042/src/dokick.c#L620</ref> <ref>https://github.com/tnnt-devteam/tnnt/commit/5a8e9054e92952b10cfa572fa2363a7f2a83a600</ref>.
+
In [[Valley of the Dead]], the swap chest is located in a nook in the upper right.
 +
 
 +
==Description==
 +
You can do three different actions with a swap chest: you can PUT one object in; you can LOOK inside to see its contents; or you can TAKE one object.
 +
 
 +
Your first action with a swap chest must be a PUT. After your first PUT, you can do LOOK actions (an unlimited number) and more PUT actions (up to three total per swap chest). Eventually, you may choose to TAKE one object. After your TAKE, that swap chest is done with you, and you may not do any more actions with that swap chest: no more PUTs, no more LOOKs, and no more TAKEs.
 +
 
 +
As usual, an object is one or more identical objects that occupy one inventory slot. For example, a group of three blessed identify scrolls is one object (sometimes known as an "object stack"). There is no limit to the number of objects that can be together in one stack.
 +
 
 +
In TNNT, there are two swap chests per game, so a hero can do up to 6 PUT actions per game and up to 2 TAKE actions per game.
 +
 
 +
Objects inside a swap chest are fully identified and have [[name]]s that acknowledge the object donors.
 +
 
 +
To prevent abuse, the LOOK action does not show objects that the hero themself has donated.
 +
 
 +
The TAKE is optional. In TNNT, not removing an object from a swap chest constitutes the swap-chestless [[conduct]].
 +
 
 +
==Sharing==
 +
 
 +
===Between swap chests on the same server===
 +
 
 +
The two swap chests on a server draw from a common pool of objects. A donated object placed in any swap chest, if the object stays on the same server, can be removed from the same swap chest or any other swap chest.
 +
 
 +
===Between swap chests on different servers===
 +
 
 +
When a swap chest accepts a donated object, sometimes the swap chest transfers the object to the swap chest pool on a different TNNT server. The donor has no control over this and cannot even tell if it happened or where the object went. After some time for transit, the donated object will be available from any swap chest on the target server.
 +
 
 +
==Restrictions==
 +
Swap chests cannot be locked, [[Wand of probing|probe]]d, [[polymorph]]ed, or [[cancellation|cancelled]].<ref>https://github.com/tnnt-devteam/tnnt/blob/cdcb59c1583e6fc7604f93cc59ffd3f6f6b441d3/src/lock.c#L386</ref><ref>https://github.com/tnnt-devteam/tnnt/blob/af9e0b8d02109c47fc2d20a709e5723fbfe10042/src/zap.c#L1934</ref><ref>https://github.com/tnnt-devteam/tnnt/commit/31e9e52a5ee2f549c16ae5db657bfc97ff3cedaa</ref>
 +
You cannot successfully [[wish]] for a swap chest except in [[wizard mode]]; doing so creates a normal [[chest]] instead.<ref>https://github.com/tnnt-devteam/tnnt/blob/c5d2fa2f4aee18b58c18c827adbd722c2830dea5/src/objnam.c#L3796</ref>
 +
 
 +
[[Gelatinous cube]]s and other [[monster]]s cannot eat the swap chest, and will be instantly killed if they attempt it. A hero polymorphed into a gelatinous cube cannot eat a swap chest either, but will not be instakilled.<ref>https://github.com/tnnt-devteam/tnnt/commit/b1a639f83a05688c5c5294f1cb4e8ec7d745dac6</ref> Swap chests cannot be picked up by heros due to their massive weight, nor can they be picked up by monsters, even [[nymph]]s. [[Kick]]ing a swap chest before removing an object from it causes it to kick back, dealing 10-14 physical damage to you.<ref>https://github.com/tnnt-devteam/tnnt/blob/af9e0b8d02109c47fc2d20a709e5723fbfe10042/src/dokick.c#L620</ref><ref>https://github.com/tnnt-devteam/tnnt/commit/5a8e9054e92952b10cfa572fa2363a7f2a83a600</ref>
 +
 
 +
An object with special achievement-granting properties loses those special properties when put into a swap chest, and cannot be used to get the achievement in a second game. For example, if one hero puts a candy bar from Sokoban into a swap chest and a second hero in a different game removes the candy bar, the second hero does not earn the Chocoban achievement. The second hero can still use the object normally. As of October 2023, the affected objects are: lich athames, Nazgul rings, and Sokoban candy bars.
 +
<ref>https://github.com/tnnt-devteam/tnnt/commit/e40fdd76bb7500140c37071fdf0d7d4793d591b3</ref>
  
 
==Eligible objects==
 
==Eligible objects==
 +
The following objects can be placed into a swap chest:<ref>https://github.com/tnnt-devteam/tnnt/blob/c5d2fa2f4aee18b58c18c827adbd722c2830dea5/src/pickup.c#L2236</ref>
  
The following items can be placed into a swap chest<ref>https://github.com/tnnt-devteam/tnnt/blob/c5d2fa2f4aee18b58c18c827adbd722c2830dea5/src/pickup.c#L2236</ref>:
+
* [[ring]]s
 +
** All noncursed chargeable rings with +1 or higher charge.
 +
** All noncursed non-chargeable rings.
 +
* [[wand]]s
 +
** All wands with +1 or higher charge, except a [[wand of nothing]] or [[wand of wishing]].
 +
* [[amulet]]s
 +
** All noncursed amulets, except an [[amulet of strangulation]], an [[amulet of restful sleep]], or a [[fake Amulet of Yendor]].
 +
* [[potion]]s
 +
** All [[Magical item|magical]] potions.
 +
** Potions of [[holy water]] and [[unholy water]].
 +
* [[tool]]s
 +
** [[Stethoscope]]s, empty [[oilskin sack]]s, [[bugle]]s, [[tooled horn]]s, and [[leather drum]]s.
 +
** [[Expensive camera]]s, [[tinning kit]]s and [[magic marker]]s with at least 10 charges.
 +
** Empty [[fire horn]]s, [[frost horn]]s, and [[drum of earthquake|drums of earthquake]].
 +
** All other chargeable tools with at least one charge.
 +
** Empty [[bag of holding]].
 +
** All other non-chargeable [[Magical item|magical]] tools except [[magic lamp]]s.
 +
* [[weapon]]s
 +
** Noncursed [[silver saber]]s, [[silver spear]]s, and [[silver dagger]]s.
 +
** Noncursed [[athame]]s with [[enchantment]] no worse than -2.
 +
** All other noncursed weapons with [[enchantment]] +3 or higher.
 +
* [[armor]]
 +
** All noncursed [[Magical item|magical]] armor except [[dunce cap]]s, [[fumble boots]], and [[gauntlets of fumbling]].
 +
** Noncursed [[dragon scales]].
 +
** All other noncursed [[Magical item|non-magical]] armor with [[enchantment]] +3 or higher.
 +
* [[spellbook]]s
 +
** All noncursed [[Magical item|magical]] spellbooks that allow at least 2 more readings.
 +
* [[scroll]]s
 +
** All [[Magical item|magical]] scrolls except [[scroll of amnesia]] and [[scroll of punishment]].
 +
* [[comestibles]]
 +
** [[Royal jelly]], [[wolfsbane]], and [[tin]]s of [[spinach]].
  
* All non-cursed [[ring]]s
+
The following objects cannot be placed into a swap chest:
* All charged [[wand]]s other than a [[wand of nothing]] or [[wand of wishing]]
 
* All non-cursed [[amulet]]s other than an [[amulet of strangulation]], [[amulet of restful sleep]] or [[fake Amulet of Yendor]]. The real [[Amulet of Yendor|Amulet]], of course, cannot be placed into any container.
 
* All [[Magical item|magical]] [[potion]]s, [[holy water]] and [[unholy water]]
 
* [[Expensive camera]]s, [[tinning kit]]s and [[magic marker]]s with at least 10 charges
 
* [[Stethoscope]]s and empty [[oilskin sack]]s
 
* All chargeable tools with at least one charge
 
* All other magical [[tool]]s, except non-empty containers and [[unique item]]s
 
* Non-cursed [[silver saber]]s, [[silver spear]]s, [[silver dagger]]s, or [[Enchantment|+3]] or higher weapons
 
* All [[dragon scales]], magical [[armor]] other than [[dunce cap]]s, [[fumble boots]] or [[gauntlets of fumbling]], and +3 or higher non-magical armor
 
* All non-cursed non-blank [[spellbook]]s other than the [[Book of the Dead]] that are fresh enough to be read at least one more time if you already know the spell
 
* All non-blank scrolls other than a [[scroll of amnesia]] or [[scroll of punishment]]
 
* [[Royal jelly]], [[wolfsbane]], and [[tin]]s of [[spinach]]
 
  
[[Artifact]]s can never be placed into a swap chest.
+
* The [[Amulet of Yendor]], which cannot be placed into any container.
 +
* Any [[Unique item|invocation item]], which cannot be placed into any container.
 +
* Any [[artifact]].
 +
* Any cursed [[ring]], [[amulet]], [[weapon]], [[armor]], or [[spellbook]].
 +
* Any [[container]] that is non-empty.
 +
* [[Gold]].
 +
* Any [[gem]].
 +
* [[Iron chain]]s.
 +
 
 +
==History==
 +
Swap chests appeared in the inaugural TNNT of 2018.
 +
 
 +
In 2022, swap chests were changed so that players cannot see or remove their own donated objects from the chest. Also in 2022, donated objects had a random chance of being sent to a different TNNT server. During the 2022 tournament, an exploit was fixed where cancelling a swap chest allowed repeated use of it.
 +
<ref>https://github.com/tnnt-devteam/tnnt/commit/103338cf02f5a5c4454ffe88df34667acce1dc83</ref>
 +
 
 +
In 2023, the distribution of objects between servers was adjusted so that objects are more likely to stay on their server of origin.
 +
<ref>https://github.com/tnnt-devteam/tnnt/commit/6a1666624d13e02971fd5f388d529a282fb1e637</ref>
 +
Also in 2023, there were adjustments to the eligible object list.
 +
<ref>https://github.com/tnnt-devteam/tnnt/commit/ca3b094696930b00f5bf9e2335c53f07926bd433</ref>
  
 
==Messages==
 
==Messages==
 
 
{{message|The swap chest resists your attempt to rummage through it. You feel like it wants something from you.|You tried to look inside a swap chest before contributing to it.}}
 
{{message|The swap chest resists your attempt to rummage through it. You feel like it wants something from you.|You tried to look inside a swap chest before contributing to it.}}
 
{{message|The swap chest spits out your [object] disdainfully.|You tried to put in an object that is not eligible.}}
 
{{message|The swap chest spits out your [object] disdainfully.|You tried to put in an object that is not eligible.}}
 
{{message|The swap chest refuses to impose further on your generosity, and encourages you to take something and be on your way.|You tried to put more than three objects in.}}
 
{{message|The swap chest refuses to impose further on your generosity, and encourages you to take something and be on your way.|You tried to put more than three objects in.}}
 
{{message|You hear a loud SPLAT!|A monster tried to eat a swap chest out of your sight.}}
 
{{message|You hear a loud SPLAT!|A monster tried to eat a swap chest out of your sight.}}
{{message|a token from [donor]|Name of the first object to be placed into a swap chest.}}
+
{{message|"a token from [donor]"|Name of the first object to be placed into a swap chest.}}
{{message|kindly donated by [donor]|Name of the second object to be placed into a swap chest.}}
+
{{message|"kindly donated by [donor]"|Name of the second object to be placed into a swap chest.}}
{{message|generously bestowed by [donor]|Name of the third object to be placed into a swap chest.}}
+
{{message|"generously bestowed by [donor]"|Name of the third object to be placed into a swap chest.}}
 
 
==History==
 
 
 
Swap chests appeared in the inaugural TNNT of 2018.
 
 
 
In 2022, swap chests were changed so that players cannot see or remove their own donated objects from the chest. Also in 2022, donated objects had a random chance of being sent to a different TNNT server. During the 2022 tournament, an exploit was fixed where cancelling a swap chest allowed repeated use of it<ref>https://github.com/tnnt-devteam/tnnt/commit/103338cf02f5a5c4454ffe88df34667acce1dc83</ref>.
 
 
 
In 2023, the distribution of objects between servers was adjusted so that objects are more likely to stay on their server of origin<ref>https://github.com/tnnt-devteam/tnnt/commit/6a1666624d13e02971fd5f388d529a282fb1e637</ref>. Also in 2023, there were adjustments to the eligible object list<ref>https://github.com/tnnt-devteam/tnnt/commit/6a1666624d13e02971fd5f388d529a282fb1e637</ref>.
 
  
 
==References==
 
==References==
 
 
<references/>
 
<references/>
 
+
{{nethack-367}}
 
[[Category:The November NetHack Tournament]]
 
[[Category:The November NetHack Tournament]]

Latest revision as of 15:57, 15 April 2024

(
Name swap chest
Appearance mysterious sapient pearwood container
Base price 16000 zm
Weight 6000
Material wood
Monster use Will not be used by monsters.

A swap chest is a special container that appears in The November NetHack Tournament. It allows players to exchange objects between games.

Generation

Swap chests are not randomly generated. There is one swap chest in Mines' End and a second swap chest in the Valley of the Dead.

For Mines' End, the swap chest location depends on the level layout. In Mimic of the Mines, the swap chest is located in a small cave in the lower right. In the Gnome King Wine Cellar, the swap chest is located near the fountain in the lower left. In the Catacombs, the swap chest is located in the small room in the upper right.

In Valley of the Dead, the swap chest is located in a nook in the upper right.

Description

You can do three different actions with a swap chest: you can PUT one object in; you can LOOK inside to see its contents; or you can TAKE one object.

Your first action with a swap chest must be a PUT. After your first PUT, you can do LOOK actions (an unlimited number) and more PUT actions (up to three total per swap chest). Eventually, you may choose to TAKE one object. After your TAKE, that swap chest is done with you, and you may not do any more actions with that swap chest: no more PUTs, no more LOOKs, and no more TAKEs.

As usual, an object is one or more identical objects that occupy one inventory slot. For example, a group of three blessed identify scrolls is one object (sometimes known as an "object stack"). There is no limit to the number of objects that can be together in one stack.

In TNNT, there are two swap chests per game, so a hero can do up to 6 PUT actions per game and up to 2 TAKE actions per game.

Objects inside a swap chest are fully identified and have names that acknowledge the object donors.

To prevent abuse, the LOOK action does not show objects that the hero themself has donated.

The TAKE is optional. In TNNT, not removing an object from a swap chest constitutes the swap-chestless conduct.

Sharing

Between swap chests on the same server

The two swap chests on a server draw from a common pool of objects. A donated object placed in any swap chest, if the object stays on the same server, can be removed from the same swap chest or any other swap chest.

Between swap chests on different servers

When a swap chest accepts a donated object, sometimes the swap chest transfers the object to the swap chest pool on a different TNNT server. The donor has no control over this and cannot even tell if it happened or where the object went. After some time for transit, the donated object will be available from any swap chest on the target server.

Restrictions

Swap chests cannot be locked, probed, polymorphed, or cancelled.[1][2][3] You cannot successfully wish for a swap chest except in wizard mode; doing so creates a normal chest instead.[4]

Gelatinous cubes and other monsters cannot eat the swap chest, and will be instantly killed if they attempt it. A hero polymorphed into a gelatinous cube cannot eat a swap chest either, but will not be instakilled.[5] Swap chests cannot be picked up by heros due to their massive weight, nor can they be picked up by monsters, even nymphs. Kicking a swap chest before removing an object from it causes it to kick back, dealing 10-14 physical damage to you.[6][7]

An object with special achievement-granting properties loses those special properties when put into a swap chest, and cannot be used to get the achievement in a second game. For example, if one hero puts a candy bar from Sokoban into a swap chest and a second hero in a different game removes the candy bar, the second hero does not earn the Chocoban achievement. The second hero can still use the object normally. As of October 2023, the affected objects are: lich athames, Nazgul rings, and Sokoban candy bars. [8]

Eligible objects

The following objects can be placed into a swap chest:[9]

The following objects cannot be placed into a swap chest:

History

Swap chests appeared in the inaugural TNNT of 2018.

In 2022, swap chests were changed so that players cannot see or remove their own donated objects from the chest. Also in 2022, donated objects had a random chance of being sent to a different TNNT server. During the 2022 tournament, an exploit was fixed where cancelling a swap chest allowed repeated use of it. [10]

In 2023, the distribution of objects between servers was adjusted so that objects are more likely to stay on their server of origin. [11] Also in 2023, there were adjustments to the eligible object list. [12]

Messages

The swap chest resists your attempt to rummage through it. You feel like it wants something from you.
You tried to look inside a swap chest before contributing to it.
The swap chest spits out your [object] disdainfully.
You tried to put in an object that is not eligible.
The swap chest refuses to impose further on your generosity, and encourages you to take something and be on your way.
You tried to put more than three objects in.
You hear a loud SPLAT!
A monster tried to eat a swap chest out of your sight.
"a token from [donor]"
Name of the first object to be placed into a swap chest.
"kindly donated by [donor]"
Name of the second object to be placed into a swap chest.
"generously bestowed by [donor]"
Name of the third object to be placed into a swap chest.

References