36 lines
No EOL
775 B
JavaScript
36 lines
No EOL
775 B
JavaScript
import { randomNumber } from "./functions.js";
|
|
import {} from "./variables.js";
|
|
|
|
|
|
// Inventories for the various shops
|
|
var rrInv = [];
|
|
var vt0Inv = [];
|
|
var vegasInv = []; // A mix of gunrunners, mick&ralphs, and followers
|
|
var eurInv = [];
|
|
var traderInv = ["gun", "stimpak", "radx"];
|
|
|
|
function ravenRock() {
|
|
// purchasing code
|
|
}
|
|
|
|
function vaultZero() {
|
|
// purchasing code
|
|
}
|
|
|
|
function newVegas() {
|
|
// purchasing code
|
|
}
|
|
|
|
function eureka() {
|
|
// purchasing code
|
|
}
|
|
|
|
function trader() { // Picks a selection of items from a global trader inventory
|
|
var tempTraderInv = [];
|
|
for (var a = 0; a <= 2; a++) {
|
|
let randomPick = randomNumber()
|
|
tempTraderInv.push(traderInv[1]);
|
|
console.log(randomPick);
|
|
}
|
|
console.log(tempTraderInv);
|
|
} |