mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Implement color inverter building
This commit is contained in:
@@ -48,6 +48,7 @@ export class HUDSandboxController extends BaseHUDPart {
|
||||
|
||||
<div class="additionalOptions">
|
||||
<button class="styledButton giveBlueprints">Fill blueprint shapes</button>
|
||||
<button class="styledButton maxOutAll">Max out all</button>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
@@ -56,6 +57,7 @@ export class HUDSandboxController extends BaseHUDPart {
|
||||
const bind = (selector, handler) => this.trackClicks(this.element.querySelector(selector), handler);
|
||||
|
||||
bind(".giveBlueprints", this.giveBlueprints);
|
||||
bind(".maxOutAll", this.maxOutAll);
|
||||
bind(".levelToggle .minus", () => this.modifyLevel(-1));
|
||||
bind(".levelToggle .plus", () => this.modifyLevel(1));
|
||||
|
||||
@@ -76,6 +78,13 @@ export class HUDSandboxController extends BaseHUDPart {
|
||||
this.root.hubGoals.storedShapes[blueprintShape] += 1e4;
|
||||
}
|
||||
|
||||
maxOutAll() {
|
||||
this.modifyUpgrade("belt", 100);
|
||||
this.modifyUpgrade("miner", 100);
|
||||
this.modifyUpgrade("processors", 100);
|
||||
this.modifyUpgrade("painting", 100);
|
||||
}
|
||||
|
||||
modifyUpgrade(id, amount) {
|
||||
const handle = UPGRADES[id];
|
||||
const maxLevel = handle.tiers.length;
|
||||
|
||||
Reference in New Issue
Block a user