X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=command.c;h=584ba8af7c6e902360dd8f6ac6702c867a10e437;hp=6b8033b1417ec8d9c68e9ac9f43c164e7ebd2ab2;hb=4411252a0951e08a912a0c56299d894a42bb4d77;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/command.c b/command.c index 6b8033b..584ba8a 100644 --- a/command.c +++ b/command.c @@ -3,7 +3,7 @@ * * @(#)command.c 3.45 (Berkeley) 6/15/81 * - * Rogue: Exploring the Dungeons of Doom + * Rogue: Exploring the Cavern of Cuties * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman * All rights reserved. * @@ -101,26 +101,6 @@ command() count = 0; } } - switch (ch) - { - case 'f': - if (!on(player, ISBLIND)) - { - door_stop = TRUE; - firstmove = TRUE; - } - if (count && !newcount) - ch = direction; - else - ch = readchar(cw); - switch (ch) - { - case 'h': case 'j': case 'k': case 'l': - case 'y': case 'u': case 'b': case 'n': - ch = toupper(ch); - } - direction = ch; - } newcount = FALSE; /* * execute a command @@ -165,6 +145,18 @@ command() when 'R' : ring_off(); when 'o' : option(); when 'c' : call(); + when 'f': + if (!get_dir()) + after = FALSE; + else + flirt(delta.y, delta.x); + when 'g': + if (!get_dir()) + after = FALSE; + else + gift(delta.y, delta.x); + when 'E': + embrace(); when '>' : after = FALSE; d_level(); when '<' : after = FALSE; u_level(); when '?' : after = FALSE; help(); @@ -201,7 +193,7 @@ command() { if (wizard = passwd()) { - msg("You are suddenly as smart as Ken Arnold in dungeon #%d", dnum); + msg("You are suddenly as smart as Ken Arnold in cavern #%d", dnum); wizard = TRUE; waswizard = TRUE; } @@ -526,7 +518,7 @@ u_level() { level--; if (level == 0) - total_winner(); + total_loner(); new_level(); msg("You feel a wrenching sensation in your gut."); return;