|Damage vs. small
|Damage vs. large
A katana is a type of one-handed weapon that appears in NetHack. It is made of iron and uses the long sword skill, and appears as a samurai sword when unidentified. A samurai wielding a katana has a chance of performing a shattering blow, destroying a monster's wielded weapon.
1⁄250 of all randomly generated weapons will be katana.
Player monsters, including those on the Astral Plane, have a chance lower than 1% (specifically 1⁄290) of being generated with a katana as their initial weapon before role-based replacements. Samurai have a 1⁄2 chance of forcing a katana sword in place of their initial weapon.
The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.As part of commit 20cbadc - which strengthens quest leaders and makes it so that killing them no longer makes the game unwinnable - the Samurai quest leader Lord Sato generates with a +4 katana.
The primary differences between a katana and a long sword are the +1 bonus to hit, the katana's d10 damage to small monsters (as opposed to d8 for a long sword), and the inability to convert a katana into Excalibur by dipping. The katana is also the most damaging non-artifact weapon to use the long sword weapon skill, and is often sought after as an off-hand weapon for twoweapon combat.
Average damage calculation
The katana is the name used for a Japanese sword characterized by a curved, single-edged blade with a circular or squared guard and a long grip to accommodate two hands. It originated in the late 12th century and was most notably used by feudal samurai, worn with the blade facing upward; the official term for these swords is uchigatana (打刀), with katana often referring to other single-edged swords. Though the quality of steel in Japan was relatively poor at the time, the katana produced were considered better than the mass-produced European broadswords of the same era.
The statline for the katana, including the +1 to-hit bonus, is derived from Dungeons & Dragons.
Maids have a 1⁄4 chance of generating with a katana if the player is a Samurai, and a 7⁄10 chance otherwise. dNetHack also introduces Kiku-ichimonji, an artifact katana that replaces Snickersnee (which is changed to a knife) as the Samurai's first sacrifice gift.
The November NetHack Tournament
In The November NetHack Tournament, all devteam members have a 1⁄2 chance of being generated with a katana. The deathmatch opponent will always generate with a +5 to +7 katana if they are a samurai that does not have a weapon.
In SlashTHEM, another artifact katana, Nightingale, is introduced as the first sacrifice gift for the revived Ninja role. Kiku-ichimonji retains its role from dNetHack, while Snickersnee is still present, but is instead obtained through a different method.
The katana is a long, single-edged samurai sword with a
slightly curved blade. Its long handle is designed to allow
it to be wielded with either one or two hands.
- src/u_init.c in NetHack 3.6.7, line 134
- src/mplayer.c in NetHack 3.6.7, line 155: 1⁄2 to get a random weapon - the designated range of objects covers weapons from the spear to the bullwhip inclusively in objects.c, and uses normal generation odds
- src/mplayer.c in NetHack 3.6.7, line 232
- u_init.c in NetHack 2.3e, line 184