-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path003-defaults.gs
55 lines (54 loc) · 1.24 KB
/
003-defaults.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* @file: Contains default settings, as well as a function for applying the default settings.
*/
function setInitialDefaults() {
BPTstatic.defaults = {
module: 'example1',
iterations: 100,
logging : {
categories: {
rounds: true,
notice: true,
example: true,
statistics: true,
tests: true,
system: true,
errors: true,
},
showTimestamps: true,
},
statistics: {
percentiles: [0, .05, .15, .50, .85, .95, 1],
},
deck: {
shuffleWhenCreated: true,
addDiscardWhenShuffling: true,
displaySize: 0,
autoFillDisplay: true,
},
track: {
assumePresent: true,
startSpaceId: false,
loop: false,
gridMovement: false,
symmetricConnections: true,
lineOfSightStepFraction: .1,
},
market: {
restockOnlyIncreases: true,
},
goods: {
quantity: Number.POSITIVE_INFINITY,
maxQuantity: Number.POSITIVE_INFINITY,
},
diceRoll: {
quantity: 3,
numberOfSides: 6,
customSides: false,
},
};
// Apply some defaults right away.
module = BPTstatic.defaults.module;
for (let i of ['logging', 'statistics'])
BPTstatic[i] = BPTstatic.defaults[i];
}