1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add underground belt tier 2

This commit is contained in:
tobspr
2020-05-16 23:48:56 +02:00
parent 5179488373
commit bce44188c8
27 changed files with 542 additions and 341 deletions

View File

@@ -26,11 +26,13 @@ export class UndergroundBeltComponent extends Component {
*
* @param {object} param0
* @param {enumUndergroundBeltMode=} param0.mode As which type of belt the entity acts
* @param {number=} param0.tier
*/
constructor({ mode = enumUndergroundBeltMode.sender }) {
constructor({ mode = enumUndergroundBeltMode.sender, tier = 0 }) {
super();
this.mode = mode;
this.tier = tier;
/**
* Used on both receiver and sender.
@@ -57,7 +59,7 @@ export class UndergroundBeltComponent extends Component {
return false;
}
this.pendingItems.push([item, 1 / beltSpeed]);
this.pendingItems.push([item, 0.5 / beltSpeed]);
return true;
}