import { hasUpgrade, upgradeEffect } from '../util/features'; import { layers } from '../store/layers'; import { player } from '../store/proxies'; import Decimal from '../util/bignum'; import modInfo from './modInfo'; // Import initial layers import f from './layers/aca/f.js'; import c from './layers/aca/c.js'; import a from './layers/aca/a.js'; const g = { id: "g", symbol: "TH", branches: ["c"], color: '#6d3678', shown: true, canClick() {return player.points.gte(10)}, tooltip: "Thanos your points", onClick() { player.points = player.points.div(2); console.log(this.layer); } }; const h = { id: "h", branches: ["g", () => ({ target: 'flatBoi', featureType: 'bar', endOffset: { x: -50 + 100 * layers.c.bars.flatBoi.progress.toNumber() } })], tooltip() {return "Restore your points to {{ player.c.otherThingy }}"}, row: "side", canClick() {return player.points.lt(player.c.otherThingy)}, onClick() {player.points = new Decimal(player.c.otherThingy)} }; const spook = { id: "spook", row: 1, layerShown: "ghost", }; const main = { id: 'main', display: `