Fixed issues... Again
This commit is contained in:
parent
df257c6420
commit
d837a57472
3 changed files with 50 additions and 48 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// Program is started from here, runs functions from other files.
|
||||
import { userInput, sleep, disableRawMode, walkPathMain, randomNumber, removeDuplicates } from './functions.js';
|
||||
import { userInput, sleep, disableRawMode, walkPathMain, randomNumber } from './functions.js';
|
||||
import { forcedEncounter, naturalEncounter } from './encounters.js';
|
||||
import { ravenRockStore } from './shops.js';
|
||||
|
||||
|
|
@ -42,8 +42,9 @@ switch(mainMenuInput) {
|
|||
break;
|
||||
case "5":
|
||||
var thing1 = [1,2,3,4,5,6,7,8,9];
|
||||
var thing2 = [1, 2, 3, 4, 5, 6, 7, 8, 9];
|
||||
var thing2 = [];
|
||||
var thing3 = [];
|
||||
thing2 = thing1
|
||||
while (thing3.length < 6) {
|
||||
let randomPick = randomNumber(1,thing2.length);
|
||||
thing3.push(thing2[randomPick]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue