common: bump version to 1.11
[sheet.git] / nethack.eng.inc.pl
index 8359f0cd959079621e32e81d500d671a0bb5efff..e54a6390a097ab0f7420c28e8bb030fe25c77d08 100644 (file)
@@ -1,6 +1,6 @@
 use utf8;
-{
 
+{
 key => {
        'b' =>   "step left down\nnumpad 1",
        'j' =>        "step down\nnumpad 2",
@@ -30,23 +30,23 @@ key => {
        '^u'=>     "run right up\nnumpad 5 9",
 
        'g' => "run until interest",
-       'm' => "m$sign{_}ove blind\nno pickup",
-       'G' => "g any$sign{_}where\nfollow branches",
+       'm' => "m<>ove blind\nno pickup",
+       'G' => "g any<>where\nfollow branches",
 
        '?' => "help menu",
        '+?'=> "more help",
        '/' => "explain symbol",
-       '&' => "tell com$sign{_}m$sign{_}and",
+       '&' => "tell com<>m<>and",
        '<' => "climb up ladder",
-       '>' => "desc$sign{_}ent ladder",
+       '>' => "desc<>ent ladder",
        '.' => "rest (noop)",
        '_' => "travel to",
 
-       '+2'=> "two$sign{_}weapon toggle",
+       '+2'=> "two<>weapon toggle",
        'a' => "apply tool",
        'A' => "remove all armor",
-       '^a'=> "redo comm$sign{_}and\nAgain",
-       '+a'=> "adjust inv$sign{_}ent$sign{_}ory",
+       '^a'=> "redo comm<>and\nAgain",
+       '+a'=> "adjust inv<>ent<>ory",
        'c' => "close door",
        'C' => "call monster",
        '+c'=> "chat",
@@ -55,18 +55,18 @@ key => {
        '^d'=> "kick",
        '+d'=> "dip",
        'e' => "eat food",
-       'E' => "en$sign{_}grave",
+       'E' => "en<>grave",
        '+e'=> "weapon skills\nEnhance",
        'f' => "fire quiver",
        'F' => "fight monster",
        '+f'=> "force lock",
-       'i' => "invent$sign{_}ory",
-       'I' => "invent$sign{_}ory part",
+       'i' => "invent<>ory",
+       'I' => "invent<>ory part",
        '+i'=> "invoke object",
        '+j'=> "jump",
        '+l'=> "loot",
-       '+m'=> "mons$sign{_}ter abil$sign{_}ity",
-       '+n'=> "name item$sign{_}(s)",
+       '+m'=> "mons<>ter abil<>ity",
+       '+n'=> "name item<>(s)",
        'o' => "open door",
        'O' => "options",
        '+o'=> "offer sacrifice",
@@ -84,7 +84,7 @@ key => {
        's' => "search secrets",
        'S' => "save game",
        '+s'=> "sit down",
-       't' => "throw$sign{_}/shoot",
+       't' => "throw<>/shoot",
        'T' => "remove armor",
        '^t'=> "teleport",
        '+t'=> "turn undead",
@@ -92,7 +92,7 @@ key => {
        'v' => "version",
        'V' => "verbose version",
        '+v'=> "compile details",
-       'w' => "wield weap$sign{_}on",
+       'w' => "wield weap<>on",
        'W' => "wear armor",
        '+w'=> "wipe face",
        'x' => "swap weapons\nXchange",
@@ -103,28 +103,28 @@ key => {
        '^z'=> "suspend game",
 
        ':' => "look here",
-       ';' => "look else$sign{_}where",
+       ';' => "look else<>where",
        ',' => "pick up",
-       '@' => "toggle pick$sign{_}up",
+       '@' => "toggle pick<>up",
        '^' => "show trap",
        ')' => "show weapon",
        '[' => "show armor",
        '=' => "show rings",
        '"' => "show amulet",
        '(' => "show tools",
-       '*' => "show equip$sign{_}ment",
+       '*' => "show equip<>ment",
        '$' => "count gold",
        '+' => "list spells",
-       '\\'=> "discover$sign{_}ed obj$sign{_}ects",
+       '\\'=> "discover<>ed obj<>ects",
        '!' => "shell escape",
-       '#' => "more comm$sign{_}ands",
+       '#' => "more comm<>ands",
 
        'DB' => 'drop blessed',
        'DU' => 'drop uncursed',
        'DC' => 'drop cursed',
        'DX' => 'drop unknown',
        'Da' => 'drop all',
-       'Di' => "invent$sign{_}ory",
+       'Di' => "invent<>ory",
        'Du' => 'drop unpaid',
        'Dm' => 'drop any',
        'D%' => 'drop more',
@@ -140,16 +140,155 @@ mode => {
 },
 
 flag => {
-       pm => [direction => "Direction to move to or target a command ($sign{motion})."],
-       po => [move      => "Other character movement."],
-       co => [act       => "Direct action command: takes a turn."],
-       mi => [info      => "Informational command: shows/does something without ending the turn."],
-       mo => [invertory => "Display invertory menu."],
-       mv => [menu      => "Enters some other menu."],
-
-       arg  => ["key$sign{arg}"  => "Commands with a dot need at least one argument afterwards."],
-       argi => ["key$sign{argi}" => "Asks for an inventory item."],
-       argm => ["key$sign{argm}" => "Requires a direction afterwards."],
+       g2 => [direction => "Direction to move to or target a command (<motion>)."],
+       g3 => [move      => "Other character movement."],
+       g4 => [act       => "Direct action command: takes a turn."],
+       g6 => [info      => "Informational command: shows/does something without ending the turn."],
+       g7 => [invertory => "Display invertory menu."],
+       g8 => [menu      => "Enters some other menu."],
+
+       arg  => ["key<arg>"  => "Commands with a dot need at least one argument afterwards."],
+       argi => ["key<argi>" => "Asks for an inventory item."],
+       argm => ["key<argm>" => "Requires a direction afterwards."],
 },
 
+def => {
+       '' => {
+               'b' => 'g2',
+               'j' => 'g2',
+               'n' => 'g2',
+               'h' => 'g2',
+               'l' => 'g2',
+               'y' => 'g2',
+               'k' => 'g2',
+               'u' => 'g2',
+
+               'B' => 'g3',
+               'J' => 'g3',
+               'N' => 'g3',
+               'H' => 'g3',
+               'L' => 'g3',
+               'Y' => 'g3',
+               'K' => 'g3',
+               'U' => 'g3',
+
+               '^b'=> 'g3',
+               '^j'=> 'g3',
+               '^n'=> 'g3',
+               '^h'=> 'g3',
+               '^l'=> 'g3',
+               '^y'=> 'g3',
+               '^k'=> 'g3',
+               '^u'=> 'g3',
+
+               'g' => 'g3 argm',
+               'm' => 'g3 argm',
+               'G' => 'g3 argm',
+
+               '?' => 'g8 mode?', #help
+               '+?'=> 'g8',
+               '/' => 'g6 arg mode/', #whatis
+               '&' => 'g6 arg',
+               '<' => 'g2', #up
+               '>' => 'g2', #down
+               '.' => 'g2', #rest
+               '_' => 'g3 argM', #travel
+
+               '+2'=> 'g4', #twoweapon
+               'a' => 'g4 argi', #apply
+               'A' => 'g4', #armor
+               '^a'=> 'g4', #again
+               '+a'=> 'g6', #adjust
+               'c' => 'g4 argm', #close
+               'C' => 'g4 arg', #call
+               '+c'=> 'g4 arg', #chat
+               'd' => 'g4 argi', #drop
+               'D' => 'g4 arg modeD', #Drop
+               '^d'=> 'g4 argm', #kick
+               '+d'=> 'g4 argi', #dip
+               'e' => 'g4 argi', #eat
+               'E' => 'g4 argi', #engrave
+               '+e'=> 'g4', #enhance
+               'f' => 'g4 argm', #fire
+               'F' => 'g4 argm', #fight
+               '+f'=> 'g4', #force
+               'i' => 'g7', #invent
+               'I' => 'g7 arg modeI', #Invent
+               '+i'=> 'g4 argi', #invoke
+               '+j'=> 'g4', #jump
+               '+l'=> 'g4', #loot
+               '+m'=> 'g4', #monster
+               '+n'=> 'g7 arg', #name
+               'o' => 'g4 argm', #open
+               'O' => 'g8 modeO', #options
+               '+o'=> 'g4 argi', #offer
+               'p' => 'g4', #pay
+               'P' => 'g4 argi', #puton
+               '^p'=> 'g6', #prevmsg
+               '+p'=> 'g4 arg', #pray
+               'q' => 'g4 argi', #quaff
+               'Q' => 'g4 argi', #quiver
+               '+q'=> 'g6', #quit
+               'r' => 'g4 argi', #read
+               'R' => 'g4 argi', #remove
+               '^r'=> 'g6', #redraw
+               '+r'=> 'g4 argi', #rub
+               's' => 'g4', #search
+               'S' => 'g6', #save
+               '+s'=> 'g4', #sit
+               't' => 'g4 argm', #throw
+               'T' => 'g4 argi', #takeoff
+               '^t'=> 'g4', #'port
+               '+t'=> 'g4', #turn
+               '+u'=> 'g4', #untrap
+               'v' => 'g6',
+               'V' => 'g6', #history
+               '+v'=> 'g6', #version
+               'w' => 'g4 argi', #wield
+               'W' => 'g4 argi', #wear
+               '+w'=> 'g4', #wipe
+               'x' => 'g4', #xchange
+               'X' => 'g6', #explore
+               '^x'=> 'g6', #show
+               'z' => 'g4 argm', #zap
+               'Z' => 'g4 argi', #Zap
+               '^z'=> 'g6', #suspend
+
+               ':' => 'g6', #look
+               ';' => 'g6 argM', #farlook
+               ',' => 'g4', #pickup
+               '@' => 'g6',
+               '^' => 'g6 argm', #trap_id
+               ')' => 'g7',
+               '[' => 'g7',
+               '=' => 'g7',
+               '"' => 'g7',
+               '(' => 'g7',
+               '*' => 'g7',
+               '$' => 'g6', #gold
+               '+' => 'g7', #spells
+               '\\'=> 'g7', #known
+               '!' => 'g6', #sh
+               '#' => 'g8',
+       },
+
+       'D' => {
+               'B' => 'g4',
+               'U' => 'g4',
+               'C' => 'g4',
+               'X' => 'g4',
+               'a' => 'g4',
+               'i' => 'g6',
+               'u' => 'g4',
+               'm' => 'g4 argi',
+               '%' => 'g4 arg',
+       },
+
+       'I' => {
+               '*' => 'g6',
+               'u' => 'g6',
+               'x' => 'g6',
+               '$' => 'g6',
+       },
+},
 }