Skip to content
Snippets Groups Projects
Commit dfe402ec authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dasme/gravyard' into 'master'

Added key buffer flush to prevent auto skipping prompts. Version updated to 1.1.

See merge request main/sbbs!277
parents fcf4a001 386e39fd
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!277Added key buffer flush to prevent auto skipping prompts. Version updated to 1.1.
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
`5ú`2[`0e`2]`5ú `2Enter Shack `5ú`2[`0e`2]`5ú `2Enter Shack
`5ú`2[`0t`2]`5ú `2Talk to Grave Digger `5ú`2[`0t`2]`5ú `2Talk to Grave Digger
`5ú`2[`0g`2]`5ú `2Search the Newly Dug Gave `5ú`2[`0g`2]`5ú `2Search the Newly Dug Grave
`5ú`2[`0s`2]`5ú `2Check Out the Stand! `5ú`2[`0s`2]`5ú `2Check Out the Stand!
`5ú`2[`0l`2]`5ú `2Flee In Terror!!!! `5ú`2[`0l`2]`5ú `2Flee In Terror!!!!
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
(c) 2023 Lloyd Hannesson - dasme@dasme.org (c) 2023 Lloyd Hannesson - dasme@dasme.org
*/ */
var graName = 'The Warrior\'s Graveyard'; var graName = 'The Warrior\'s Graveyard';
var graNameFancy = ' `$- `%The Warrior\'s Graveyard `$- '; var graNameFancy = '`8 `%T`7he `%W`7arrior\'s `%G`7raveyard `8';
var graVersion = 'JS v1.0'; var graVersion = 'JS v1.1';
var graDebug = false; var graDebug = false;
var menu_redisplay = true; var menu_redisplay = true;
var menu_file; var menu_file;
...@@ -332,7 +332,9 @@ function command_prompt(currentPlace,menu_keys) { ...@@ -332,7 +332,9 @@ function command_prompt(currentPlace,menu_keys) {
function press_a_key(no_clear) { function press_a_key(no_clear) {
var ch; var ch;
lw(' `2<`0MORE`2>'); //lw(' `2<`0MORE`2>');
lw(' `@ `0Press A Key `@');
flush_keys();
ch = getkey(); ch = getkey();
if(no_clear) { if(no_clear) {
dk.console.print('\r'); dk.console.print('\r');
...@@ -355,6 +357,12 @@ function are_you_sure() { ...@@ -355,6 +357,12 @@ function are_you_sure() {
return(false); return(false);
} }
function flush_keys() {
while (dk.console.waitkey(0)) {
dk.console.getkey();
}
}
// Adding in some functions to match the old door driver I used.. // Adding in some functions to match the old door driver I used..
function CharmCheck(Charm) { function CharmCheck(Charm) {
player.cha = player.cha + parseInt(Charm); player.cha = player.cha + parseInt(Charm);
...@@ -1151,7 +1159,7 @@ function graGraveRob() { ...@@ -1151,7 +1159,7 @@ function graGraveRob() {
} }
/* -=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ /* -=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* Menus /* Menus */
/* -=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ /* -=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
function graDebugMenu() { function graDebugMenu() {
...@@ -1761,11 +1769,10 @@ function main() { ...@@ -1761,11 +1769,10 @@ function main() {
if (argc == 1 && argv[0] == 'INSTALL') { if (argc == 1 && argv[0] == 'INSTALL') {
var install = { var install = {
desc:'`6- `%The Warrior\'s Graveyard `6-' desc:graNameFancy
} }
exit(0); exit(0);
} } else {
else {
main(); main();
exit(0); exit(0);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment