]> granicus.if.org Git - nethack/commitdiff
Change command X to twoweapon toggle
authorPasi Kallinen <paxed@alt.org>
Mon, 9 Mar 2015 20:53:43 +0000 (22:53 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 9 Mar 2015 20:53:43 +0000 (22:53 +0200)
Explore mode is now an extended command #exploremode.
There's no sense that a command used max. once per game, and
in normal games not at all, takes up a key. So, analogous to
the 'x' command (swap weapons), 'X' now toggles two-weapon
combat.

dat/cmdhelp
dat/help
dat/hh
doc/Guidebook.mn
src/cmd.c

index 811c9bdda762977b949efae14b8ac2f768946fa4..d7487750fb73a9fde717fd2e1237b821ae0ab8b1 100644 (file)
@@ -69,7 +69,7 @@ V       Show long version and game history
 w       Wield (put in use) a weapon
 W       Wear a piece of armor
 x       Swap wielded and secondary weapons
-X       Enter explore (discovery) mode (only if defined)
+X       Toggle two-weapon combat
 y       Go northwest 1 space
 Y       Go northwest until you are on top of something
 ^Y      Go northwest until you are near something
index 7f9ee92abc922bd71c12d89623133515167ab1ca..07971cec2a25962d7db7a6080fa4be100413c026 100644 (file)
--- a/dat/help
+++ b/dat/help
@@ -147,7 +147,7 @@ Commands:
         w       Wield weapon.  w- means wield nothing, use bare hands.
         W       Wear armor.
         x       Swap wielded and secondary weapons.
-        X       Switch the game to explore (discovery) mode.
+        X       Toggle two-weapon combat.
         ^X      Show your attributes.
         z       Zap a wand.  (Use y instead of z if number_pad is -1.)
         Z       Cast a spell.  (Use Y instead of Z if number_pad is -1.)
diff --git a/dat/hh b/dat/hh
index 1887547c70ce437c7c4625ca70437c029193f8e5..b16b1c91cc077f17a1d9d55b6c70e1ba03283103 100644 (file)
--- a/dat/hh
+++ b/dat/hh
@@ -32,7 +32,6 @@ O       options set options
 \       known   display list of what's been discovered
 v       version display version number
 V       history display game history
-X       explore switch the game to explore (discovery) mode
 ^A      again   redo the previous command (^A denotes the keystroke CTRL-A)
 ^R      redraw  redraw the screen
 ^P      prevmsg repeat previous message (subsequent ^P's repeat earlier ones)
@@ -70,6 +69,7 @@ T       takeoff take off some armor
 w       wield   wield a weapon  (w-  wield nothing)
 W       wear    put on some armor
 x       xchange swap wielded and secondary weapons
+X       twoweapon toggle two-weapon combat
 z       zap     zap a wand  (use y instead of z if number_pad is -1)
 Z       Zap     cast a spell  (use Y instead of Z if number_pad is -1)
 <       up      go up the stairs
index f04f3b30998b47d24fdd37717ca7e46005dcc94c..86094fe26122cd4fe05d019545f1a40f76548cdd 100644 (file)
@@ -708,7 +708,8 @@ The latter is used as your secondary weapon when engaging in
 two-weapon combat.  Note that if one of these slots is empty,
 the exchange still takes place.
 .lp X
-Enter explore (discovery) mode, explained in its own section later.
+Toggle two-weapon combat, if your character can do it.  Also available
+via the ``#twoweapon'' extended command
 .lp ""
 Since using this command by accident would be troublesome, you are asked
 to confirm your intent before switching to explore mode.  By default
@@ -2980,8 +2981,8 @@ with the
 .op -X
 command-line switch or with the
 .op playmode:explore
-option.  The other is to issue the `X' command while already
-playing the game.  Starting a new game in explore mode provides your
+option.  The other is to issue the ``#exploremode'' extended command while
+already playing the game.  Starting a new game in explore mode provides your
 character with a wand of wishing in initial inventory; switching via `X'
 during play does not.  The other benefits of explore mode are left for
 the trepid reader to discover.
index f7e858e01f1fe217b252fd4897bb502e788b32e6..5d9bcfc279c59cefdcccde81d27d6952a54770c7 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -2411,7 +2411,7 @@ static const struct func_tab cmdlist[] = {
        {'W', FALSE, dowear},
        {M('w'), FALSE, dowipe},
        {'x', FALSE, doswapweapon},
-       {'X', TRUE, enter_explore_mode},
+       {'X', FALSE, dotwoweapon},
 /*     'y', 'Y' : go nw */
        {'z', FALSE, dozap},
        {'Z', TRUE, docast},
@@ -2456,6 +2456,7 @@ struct ext_func_tab extcmdlist[] = {
        {"dip", "dip an object into something", dodip, FALSE},
        {"enhance", "advance or check weapon and spell skills",
                                                enhance_weapon_skill, TRUE},
+       {"exploremode", "enter explore mode", enter_explore_mode, TRUE},
        {"force", "force a lock", doforce, FALSE},
        {"invoke", "invoke an object's powers", doinvoke, TRUE},
        {"jump", "jump to a location", dojump, FALSE},