-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
75 lines (71 loc) · 1.51 KB
/
constants.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import React from 'react';
import chargeIcon from '../media/watts.png';
import waterIcon from '../media/water.png';
import * as types from './actions/action-types.js';
export const INITIAL_EXCHANGE_RATES = {
charge: {
storedCharge: .5,
},
storedCharge: {
charge: 1,
},
};
export const INITIAL_RESOURCES = {
storedCharge: {
name: 'Stored Charge',
amount: 0,
max: 10,
display: true,
icon: (
<img className='resource-icon stored' src={chargeIcon} alt='charge icon' />
)
},
water: {
name: 'Fresh Water',
amount: 0,
display: true,
icon: (
<img className='resource-icon stored' src={waterIcon} alt='charge icon' />
)
},
nutrients: {
name: 'Nutrients',
amount: 0,
display: true,
},
solder: {
name: 'Solder',
amount: 0,
display: false,
}
};
export const INITIAL_SYSTEMS = {
ELECTRIC: {
onAction: types.SYSTEMS.ELECTRIC.ON,
offAction: types.SYSTEMS.ELECTRIC.OFF,
tickActionType: types.SYSTEMS.ELECTRIC.TICK,
onResourceAmount: 2,
storing: false,
storeRate: 2,
display: true,
charge: 0,
maxCharge: 10,
online: false,
tickSpeed: 1000,
},
WATER: {
onAction: types.SYSTEMS.WATER.ON,
offAction: types.SYSTEMS.WATER.OFF,
tickActionType: types.SYSTEMS.WATER.TICK,
onResourceName: 'storedCharge',
onResourceAmount: 5,
display: true,
flow: null,
online: false,
water: 0,
filterRatio: 10,
filterChargeCost: 2,
tickSpeed: 1000,
tickCost: 1,
}
}