From 1dfb5f7476865bf06208f7f8246521eaafbc24ab Mon Sep 17 00:00:00 2001 From: tobspr Date: Sat, 15 Aug 2020 23:19:55 +0200 Subject: [PATCH] Give more blueprint shapes in sandbox controller, create wire network even if it consists of tunnels only --- src/js/game/hud/parts/sandbox_controller.js | 2 +- src/js/game/systems/wire.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/game/hud/parts/sandbox_controller.js b/src/js/game/hud/parts/sandbox_controller.js index 04773019..dd521655 100644 --- a/src/js/game/hud/parts/sandbox_controller.js +++ b/src/js/game/hud/parts/sandbox_controller.js @@ -78,7 +78,7 @@ export class HUDSandboxController extends BaseHUDPart { if (!this.root.hubGoals.storedShapes[blueprintShape]) { this.root.hubGoals.storedShapes[blueprintShape] = 0; } - this.root.hubGoals.storedShapes[blueprintShape] += 1e4; + this.root.hubGoals.storedShapes[blueprintShape] += 1e9; } maxOutAll() { diff --git a/src/js/game/systems/wire.js b/src/js/game/systems/wire.js index a25f6040..b8d8031e 100644 --- a/src/js/game/systems/wire.js +++ b/src/js/game/systems/wire.js @@ -317,7 +317,9 @@ export class WireSystem extends GameSystemWithFilter { if ( currentNetwork.providers.length > 0 && - (currentNetwork.wires.length > 0 || currentNetwork.receivers.length > 0) + (currentNetwork.wires.length > 0 || + currentNetwork.receivers.length > 0 || + currentNetwork.tunnels.length > 0) ) { this.networks.push(currentNetwork); VERBOSE_WIRES && logger.log("Attached new network with uid", currentNetwork);