Start implementing different equipmennt
This commit is contained in:
parent
3185ec340a
commit
56f0c087df
1 changed files with 19 additions and 7 deletions
26
src/main.js
26
src/main.js
|
@ -52,25 +52,37 @@ class Asteroid {
|
||||||
][Helper.random_number(0, 4)];
|
][Helper.random_number(0, 4)];
|
||||||
}
|
}
|
||||||
|
|
||||||
mine_resource() {
|
mine_resource(player) {
|
||||||
let resources = {
|
let resources = {
|
||||||
'A': ['dust', 'dust', 'stone'],
|
'A': ['dust', 'dust', 'stone'],
|
||||||
'C': ['dust', 'carbon', 'carbon', 'carbon'],
|
'C': ['dust', 'carbon', 'carbon', 'carbon'],
|
||||||
'S': ['dust', 'stone', 'stone'],
|
'S': ['dust', 'stone', 'stone'],
|
||||||
'X': ['metal']
|
'X': ['metal']
|
||||||
}[this.classification];
|
}[this.classification];
|
||||||
return resources[Helper.random_number(0, resources.length)];
|
let res_type = resources[Helper.random_number(0, resources.length)];
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: gain!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Station {
|
class Station {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.inventory = [
|
this.inventory = [
|
||||||
'probe', // take probes from the asteroid
|
// take probes from the asteroid
|
||||||
'conveyor', // mine on surface
|
'probe': {'A': 1, 'C': 1, 'S': 1, 'X': 1},
|
||||||
'pipe-drill', // shaft mining into the asteroid
|
|
||||||
'magnet', // pick up loose grains with magnet, x-class asteroids only
|
// mine on surface
|
||||||
'vaporizer' // melt the matrix
|
'conveyor': {'A': 2, 'C': 8, 'S': 4, 'X': 1},
|
||||||
|
|
||||||
|
// shaft mining into the asteroid
|
||||||
|
'pipe-drill': {'A': 3, 'C': 15, 'S': 12, 'X': 2},
|
||||||
|
|
||||||
|
// pick up loose grains with magnet, x-class asteroids only
|
||||||
|
'magnet': {'A': 3, 'C': 1, 'S': 1, 'X': 20},
|
||||||
|
|
||||||
|
// melt the matrix
|
||||||
|
'vaporizer': {'A': 4, 'C': 7, 'S': 6, 'X': 5}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue