├── .eslintignore ├── .eslintrc.yml ├── .github └── workflows │ └── nodejs.yml ├── .gitignore ├── LICENSE ├── README.md ├── grafana_backup ├── city.json ├── overview.json ├── resources.json └── roles.json ├── package.json ├── rollup.config.js ├── screepsNoCreds.yml ├── src ├── buildings │ ├── factory.ts │ ├── labs.ts │ ├── link.ts │ ├── observer.ts │ ├── powerSpawn.ts │ ├── spawn.ts │ └── tower.ts ├── config │ ├── settings.ts │ ├── template.ts │ └── types.ts ├── lib │ ├── actions.ts │ ├── boosts.ts │ ├── creepNames.ts │ ├── creepUtils.ts │ ├── globals.ts │ ├── motion.ts │ ├── roomUtils.ts │ ├── spawnQueue.ts │ └── utils.ts ├── main.ts ├── managers │ ├── city.ts │ ├── commodityManager.ts │ ├── markets.ts │ ├── military.ts │ ├── roomplan.ts │ └── swcTrading.ts ├── operations │ ├── bucket.ts │ ├── data.ts │ ├── error.ts │ ├── profiler-prep.ts │ ├── screeps-profiler.ts │ └── stats.ts ├── roles │ ├── breaker.ts │ ├── brick.ts │ ├── builder.ts │ ├── claimer.ts │ ├── defender.ts │ ├── depositMiner.ts │ ├── ferry.ts │ ├── harasser.ts │ ├── medic.ts │ ├── mineralMiner.ts │ ├── powerCreep.ts │ ├── powerMiner.ts │ ├── qrCode.ts │ ├── quad.ts │ ├── remoteMiner.ts │ ├── repairer.ts │ ├── reserver.ts │ ├── robber.ts │ ├── roles.ts │ ├── runner.ts │ ├── sKguard.ts │ ├── scout.ts │ ├── spawnBuilder.ts │ ├── transporter.ts │ ├── unclaimer.ts │ └── upgrader.ts └── screeps.d.ts ├── test ├── cityTest.js ├── commodityTest.js ├── ferryTest.js ├── index.js ├── lib.js ├── minerTest.js ├── motionTest.js ├── observerTest.js ├── spawnQueueTest.js ├── testSettings.js ├── testUtils.js ├── transporterTest.js ├── typesTest.js └── utilsTest.js └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/README.md -------------------------------------------------------------------------------- /grafana_backup/city.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/grafana_backup/city.json -------------------------------------------------------------------------------- /grafana_backup/overview.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/grafana_backup/overview.json -------------------------------------------------------------------------------- /grafana_backup/resources.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/grafana_backup/resources.json -------------------------------------------------------------------------------- /grafana_backup/roles.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/grafana_backup/roles.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/rollup.config.js -------------------------------------------------------------------------------- /screepsNoCreds.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/screepsNoCreds.yml -------------------------------------------------------------------------------- /src/buildings/factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/factory.ts -------------------------------------------------------------------------------- /src/buildings/labs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/labs.ts -------------------------------------------------------------------------------- /src/buildings/link.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/link.ts -------------------------------------------------------------------------------- /src/buildings/observer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/observer.ts -------------------------------------------------------------------------------- /src/buildings/powerSpawn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/powerSpawn.ts -------------------------------------------------------------------------------- /src/buildings/spawn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/spawn.ts -------------------------------------------------------------------------------- /src/buildings/tower.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/buildings/tower.ts -------------------------------------------------------------------------------- /src/config/settings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/config/settings.ts -------------------------------------------------------------------------------- /src/config/template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/config/template.ts -------------------------------------------------------------------------------- /src/config/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/config/types.ts -------------------------------------------------------------------------------- /src/lib/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/actions.ts -------------------------------------------------------------------------------- /src/lib/boosts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/boosts.ts -------------------------------------------------------------------------------- /src/lib/creepNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/creepNames.ts -------------------------------------------------------------------------------- /src/lib/creepUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/creepUtils.ts -------------------------------------------------------------------------------- /src/lib/globals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/globals.ts -------------------------------------------------------------------------------- /src/lib/motion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/motion.ts -------------------------------------------------------------------------------- /src/lib/roomUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/roomUtils.ts -------------------------------------------------------------------------------- /src/lib/spawnQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/spawnQueue.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/managers/city.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/managers/city.ts -------------------------------------------------------------------------------- /src/managers/commodityManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/managers/commodityManager.ts -------------------------------------------------------------------------------- /src/managers/markets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/managers/markets.ts -------------------------------------------------------------------------------- /src/managers/military.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/managers/military.ts -------------------------------------------------------------------------------- /src/managers/roomplan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/managers/roomplan.ts -------------------------------------------------------------------------------- /src/managers/swcTrading.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/managers/swcTrading.ts -------------------------------------------------------------------------------- /src/operations/bucket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/operations/bucket.ts -------------------------------------------------------------------------------- /src/operations/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/operations/data.ts -------------------------------------------------------------------------------- /src/operations/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/operations/error.ts -------------------------------------------------------------------------------- /src/operations/profiler-prep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/operations/profiler-prep.ts -------------------------------------------------------------------------------- /src/operations/screeps-profiler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/operations/screeps-profiler.ts -------------------------------------------------------------------------------- /src/operations/stats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/operations/stats.ts -------------------------------------------------------------------------------- /src/roles/breaker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/breaker.ts -------------------------------------------------------------------------------- /src/roles/brick.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/brick.ts -------------------------------------------------------------------------------- /src/roles/builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/builder.ts -------------------------------------------------------------------------------- /src/roles/claimer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/claimer.ts -------------------------------------------------------------------------------- /src/roles/defender.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/defender.ts -------------------------------------------------------------------------------- /src/roles/depositMiner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/depositMiner.ts -------------------------------------------------------------------------------- /src/roles/ferry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/ferry.ts -------------------------------------------------------------------------------- /src/roles/harasser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/harasser.ts -------------------------------------------------------------------------------- /src/roles/medic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/medic.ts -------------------------------------------------------------------------------- /src/roles/mineralMiner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/mineralMiner.ts -------------------------------------------------------------------------------- /src/roles/powerCreep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/powerCreep.ts -------------------------------------------------------------------------------- /src/roles/powerMiner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/powerMiner.ts -------------------------------------------------------------------------------- /src/roles/qrCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/qrCode.ts -------------------------------------------------------------------------------- /src/roles/quad.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/quad.ts -------------------------------------------------------------------------------- /src/roles/remoteMiner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/remoteMiner.ts -------------------------------------------------------------------------------- /src/roles/repairer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/repairer.ts -------------------------------------------------------------------------------- /src/roles/reserver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/reserver.ts -------------------------------------------------------------------------------- /src/roles/robber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/robber.ts -------------------------------------------------------------------------------- /src/roles/roles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/roles.ts -------------------------------------------------------------------------------- /src/roles/runner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/runner.ts -------------------------------------------------------------------------------- /src/roles/sKguard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/sKguard.ts -------------------------------------------------------------------------------- /src/roles/scout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/scout.ts -------------------------------------------------------------------------------- /src/roles/spawnBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/spawnBuilder.ts -------------------------------------------------------------------------------- /src/roles/transporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/transporter.ts -------------------------------------------------------------------------------- /src/roles/unclaimer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/unclaimer.ts -------------------------------------------------------------------------------- /src/roles/upgrader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/roles/upgrader.ts -------------------------------------------------------------------------------- /src/screeps.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/src/screeps.d.ts -------------------------------------------------------------------------------- /test/cityTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/cityTest.js -------------------------------------------------------------------------------- /test/commodityTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/commodityTest.js -------------------------------------------------------------------------------- /test/ferryTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/ferryTest.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/index.js -------------------------------------------------------------------------------- /test/lib.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/lib.js -------------------------------------------------------------------------------- /test/minerTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/minerTest.js -------------------------------------------------------------------------------- /test/motionTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/motionTest.js -------------------------------------------------------------------------------- /test/observerTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/observerTest.js -------------------------------------------------------------------------------- /test/spawnQueueTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/spawnQueueTest.js -------------------------------------------------------------------------------- /test/testSettings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/testSettings.js -------------------------------------------------------------------------------- /test/testUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/testUtils.js -------------------------------------------------------------------------------- /test/transporterTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/transporterTest.js -------------------------------------------------------------------------------- /test/typesTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/typesTest.js -------------------------------------------------------------------------------- /test/utilsTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/test/utilsTest.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonathanSafer/screeps/HEAD/tsconfig.json --------------------------------------------------------------------------------