From b8d23d9c530ee711265112d62cd6c6a6dcdc2185 Mon Sep 17 00:00:00 2001 From: Pieter Brandsen Date: Sun, 18 Feb 2024 20:49:13 +0100 Subject: [PATCH] Fiixed usernamesById cache --- files/defaultActions.owned.json | 1947 ++++++++++++++-------------- files/defaultActions.reserved.json | 1362 ++++++++++--------- files/defaultActions.unknown.json | 1632 ++++++++++++----------- src/helper/users.js | 7 - src/setup/cache.js | 34 +- 5 files changed, 2578 insertions(+), 2404 deletions(-) diff --git a/files/defaultActions.owned.json b/files/defaultActions.owned.json index afa52cb..5ce5970 100644 --- a/files/defaultActions.owned.json +++ b/files/defaultActions.owned.json @@ -1,972 +1,977 @@ [ - { - "path": "totals.creeps", - "value": 0, - "type": 1 - }, - { - "path": "totals.structures", - "value": 0, - "type": 1 - }, - { - "path": "totals.constructionSites", - "value": 0, - "type": 1 - }, - { - "path": "totals.resourcesStored", - "value": 0, - "type": 1 - }, - { - "path": "totals.minerals", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.road", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.rampart", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.spawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.extension", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.link", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.storage", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.tower", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.observer", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.extractor", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.lab", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.terminal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.container", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.nuker", - "value": 0, - "type": 1 - }, - { - "path": "constructionSites.progressPercentage", - "value": 0, - "type": 1 - }, - { - "path": "constructionSites.progressNeeded", - "value": 0, - "type": 1 - }, - { - "path": "controller.level", - "value": 0, - "type": 1 - }, - { - "path": "controller.progress", - "value": 0, - "type": 1 - }, - { - "path": "controller.progressTotal", - "type": 1, - "value": 0 - }, - { - "path": "controller.ticksToDowngrade", - "value": 0, - "type": 1 - }, - { - "path": "controller.safeModeAvailable", - "type": 1, - "value": 0 - }, - { - "path": "spawning.storedSpawningEnergy", - "value": 0, - "type": 1 - }, - { - "path": "spawning.capacitySpawningEnergy", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.road", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.rampart", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.spawn", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.extension", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.link", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.storage", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.tower", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.observer", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.extractor", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.lab", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.terminal", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.container", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.nuker", - "value": 0, - "type": 1 - }, - { - "path": "controller.rclPerTick", - "value": 0, - "type": 0 - }, - { - "path": "totals.intents", - "value": 0, - "type": 0 - }, - { - "path": "countByType.creepParts.work", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.carry", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.move", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.harvest", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.upgradeController", - "value": 0, - "type": 0 - }, - { - "path": "resourcesStored.energy", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.X", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.repair", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.road", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.container", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.build", - "value": 0, - "type": 0 - }, - { - "path": "resourcesStored.H", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.L", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.K", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.OH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.U", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UL", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GHO2", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.claim", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.tough", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.attack", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.ranged_attack", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.extension", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.heal", - "value": 0, - "type": 0 - }, - { - "path": "countByType.creepParts.heal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.attack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.rangedAttack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.tower", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.rampart", - "value": 0, - "type": 1 - }, - { - "path": "minerals.O", - "value": 0, - "type": 1 - }, - { - "path": "minerals.U", - "value": 0, - "type": 1 - }, - { - "path": "minerals.K", - "value": 0, - "type": 1 - }, - { - "path": "minerals.L", - "value": 0, - "type": 1 - }, - { - "path": "minerals.H", - "value": 0, - "type": 1 - }, - { - "path": "minerals.Z", - "value": 0, - "type": 1 - }, - { - "path": "minerals.X", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.Z", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XGH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.G", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZK", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.reductant", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.battery", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.power", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XLH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XGHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XZH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XUHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XZHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XKHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XKH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XLHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.purifier", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.oxidant", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.biomass", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.utrium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.lemergium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.silicon", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XUH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.wire", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ghodium_melt", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.liquid", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ops", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.metal", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.condensate", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.mist", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.zynthium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.transistor", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.switch", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.fixtures", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.alloy", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.keanium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.composite", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.concentrate", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.extract", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.crystal", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.microchip", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.spirit", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.tube", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.frame", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.circuit", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.hydraulics", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.lab", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.factory", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.cell", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.phlegm", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.tissue", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.emanation", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.muscle", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.organoid", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.storage", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.link", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.terminal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.rangedHeal", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.nuker", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.organism", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.essence", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.rangedMassAttack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.extractor", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.spawn", - "value": 0, - "type": 1 - }, - { - "path": "controller.progressCombined", - "value": 0, - "type": 1 - }, - { - "path": "totals.rooms.owned", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.move", - "value": 0, - "type": 0 - }, - { - "path": "controller.gclPerTick", - "value": 0, - "type": 0 - }, - { - "path": "intents.income.harvest.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.income.harvest.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.income.dismantle.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.income.dismantle.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.outcome.repair.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.outcome.repair.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.outcome.build.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.outcome.build.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.outcome.upgradeController.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.outcome.upgradeController.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.attack.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.attack.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.rangedAttack.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.rangedAttack.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.rangedMassAttack.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.rangedMassAttack.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.heal.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.heal.effect", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.rangedHeal.cost", - "value": 0, - "type": 0 - }, - { - "path": "intents.offensive.rangedHeal.effect", - "value": 0, - "type": 0 - }, - { - "path": "resourcesStored.device", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.machine", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.observer", - "value": 0, - "type": 1 - } -] + { + "path": "totals.creeps", + "value": 0, + "type": 1 + }, + { + "path": "totals.structures", + "value": 0, + "type": 1 + }, + { + "path": "totals.constructionSites", + "value": 0, + "type": 1 + }, + { + "path": "totals.resourcesStored", + "value": 0, + "type": 1 + }, + { + "path": "totals.minerals", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.road", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.rampart", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.spawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.extension", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.link", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.storage", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.tower", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.observer", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.extractor", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.lab", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.terminal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.container", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.nuker", + "value": 0, + "type": 1 + }, + { + "path": "constructionSites.progressPercentage", + "value": 0, + "type": 1 + }, + { + "path": "constructionSites.progressNeeded", + "value": 0, + "type": 1 + }, + { + "path": "controller.level", + "value": 0, + "type": 1 + }, + { + "path": "controller.progress", + "value": 0, + "type": 1 + }, + { + "path": "controller.progressTotal", + "type": 1, + "value": 0 + }, + { + "path": "controller.ticksToDowngrade", + "value": 0, + "type": 1 + }, + { + "path": "controller.safeModeAvailable", + "type": 1, + "value": 0 + }, + { + "path": "spawning.storedSpawningEnergy", + "value": 0, + "type": 1 + }, + { + "path": "spawning.capacitySpawningEnergy", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.road", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.rampart", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.spawn", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.extension", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.link", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.storage", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.tower", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.observer", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.extractor", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.lab", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.terminal", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.container", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.nuker", + "value": 0, + "type": 1 + }, + { + "path": "controller.rclPerTick", + "value": 0, + "type": 0 + }, + { + "path": "totals.intents", + "value": 0, + "type": 0 + }, + { + "path": "countByType.creepParts.work", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.carry", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.move", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.harvest", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.upgradeController", + "value": 0, + "type": 0 + }, + { + "path": "resourcesStored.energy", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.X", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.repair", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.road", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.container", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.build", + "value": 0, + "type": 0 + }, + { + "path": "resourcesStored.H", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.L", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.K", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.OH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.U", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UL", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GHO2", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.claim", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.tough", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.attack", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.ranged_attack", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.extension", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.heal", + "value": 0, + "type": 0 + }, + { + "path": "countByType.creepParts.heal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.attack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.rangedAttack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.tower", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.rampart", + "value": 0, + "type": 1 + }, + { + "path": "minerals.O", + "value": 0, + "type": 1 + }, + { + "path": "minerals.U", + "value": 0, + "type": 1 + }, + { + "path": "minerals.K", + "value": 0, + "type": 1 + }, + { + "path": "minerals.L", + "value": 0, + "type": 1 + }, + { + "path": "minerals.H", + "value": 0, + "type": 1 + }, + { + "path": "minerals.Z", + "value": 0, + "type": 1 + }, + { + "path": "minerals.X", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.Z", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XGH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.G", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZK", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.reductant", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.battery", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.power", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XLH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XGHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XZH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XUHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XZHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XKHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XKH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XLHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.purifier", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.oxidant", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.biomass", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.utrium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.lemergium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.silicon", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XUH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.wire", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ghodium_melt", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.liquid", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ops", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.metal", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.condensate", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.mist", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.zynthium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.transistor", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.switch", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.fixtures", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.alloy", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.keanium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.composite", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.concentrate", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.extract", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.crystal", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.microchip", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.spirit", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.tube", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.frame", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.circuit", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.hydraulics", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.lab", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.factory", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.cell", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.phlegm", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.tissue", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.emanation", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.muscle", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.organoid", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.storage", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.link", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.terminal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.rangedHeal", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.nuker", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.organism", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.essence", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.rangedMassAttack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.extractor", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.spawn", + "value": 0, + "type": 1 + }, + { + "path": "controller.progressCombined", + "value": 0, + "type": 1 + }, + { + "path": "totals.rooms.owned", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.move", + "value": 0, + "type": 0 + }, + { + "path": "controller.gclPerTick", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.harvest.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.harvest.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.dismantle.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.dismantle.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.repair.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.repair.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.build.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.build.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.upgradeController.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.upgradeController.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.attack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.attack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedAttack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedAttack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedMassAttack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedMassAttack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.heal.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.heal.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedHeal.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedHeal.effect", + "value": 0, + "type": 0 + }, + { + "path": "resourcesStored.device", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.machine", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.observer", + "value": 0, + "type": 1 + }, + { + "path": "spawning.spawnUptimePercentage", + "value": 0, + "type": 0 + } +] \ No newline at end of file diff --git a/files/defaultActions.reserved.json b/files/defaultActions.reserved.json index c477b75..35caeaa 100644 --- a/files/defaultActions.reserved.json +++ b/files/defaultActions.reserved.json @@ -1,632 +1,732 @@ [ - { - "path": "totals.creeps", - "value": 0, - "type": 1 - }, - { - "path": "totals.structures", - "value": 0, - "type": 1 - }, - { - "path": "totals.constructionSites", - "value": 0, - "type": 1 - }, - { - "path": "totals.resourcesStored", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.road", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.rampart", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.spawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.extension", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.link", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.storage", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.tower", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.observer", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.extractor", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.lab", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.terminal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.container", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.nuker", - "value": 0, - "type": 1 - }, - { - "path": "constructionSites.progressPercentage", - "value": 0, - "type": 1 - }, - { - "path": "constructionSites.progressNeeded", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.road", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.rampart", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.spawn", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.extension", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.link", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.storage", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.tower", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.observer", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.extractor", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.lab", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.terminal", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.container", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.nuker", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.harvest", - "value": 0, - "type": 0 - }, - { - "path": "totals.intents", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.repair", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.road", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.work", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.carry", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.move", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.claim", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.tough", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.ranged_attack", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.attack", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.heal", - "value": 0, - "type": 0 - }, - { - "path": "countByType.creepParts.heal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.attack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.rangedAttack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.build", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.rangedHeal", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.rangedMassAttack", - "value": 0, - "type": 0 - }, - { - "path": "resourcesStored.energy", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.U", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.mist", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.K", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.L", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.biomass", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.X", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.H", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.Z", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.power", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.container", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZK", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UL", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.G", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.OH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XGHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XLHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XZHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XZH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XKHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XUH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XGH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XKH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XLH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XUHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ops", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.battery", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.keanium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.oxidant", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ghodium_melt", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.reductant", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.zynthium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.silicon", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.wire", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.crystal", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.liquid", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.lemergium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.utrium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.purifier", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.composite", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.switch", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.transistor", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.microchip", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.rampart", - "value": 0, - "type": 1 - }, - { - "path": "totals.rooms.reserved", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.move", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.extension", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.storage", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.cell", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.phlegm", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.alloy", - "value": 0, - "type": 1 - } -] + { + "path": "totals.creeps", + "value": 0, + "type": 1 + }, + { + "path": "totals.structures", + "value": 0, + "type": 1 + }, + { + "path": "totals.constructionSites", + "value": 0, + "type": 1 + }, + { + "path": "totals.resourcesStored", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.road", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.rampart", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.spawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.extension", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.link", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.storage", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.tower", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.observer", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.extractor", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.lab", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.terminal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.container", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.nuker", + "value": 0, + "type": 1 + }, + { + "path": "constructionSites.progressPercentage", + "value": 0, + "type": 1 + }, + { + "path": "constructionSites.progressNeeded", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.road", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.rampart", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.spawn", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.extension", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.link", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.storage", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.tower", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.observer", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.extractor", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.lab", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.terminal", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.container", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.nuker", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.harvest", + "value": 0, + "type": 0 + }, + { + "path": "totals.intents", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.repair", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.road", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.work", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.carry", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.move", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.claim", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.tough", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.ranged_attack", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.attack", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.heal", + "value": 0, + "type": 0 + }, + { + "path": "countByType.creepParts.heal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.attack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.rangedAttack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.build", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.rangedHeal", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.rangedMassAttack", + "value": 0, + "type": 0 + }, + { + "path": "resourcesStored.energy", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.U", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.mist", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.K", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.L", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.biomass", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.X", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.H", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.Z", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.power", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.container", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZK", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UL", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.G", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.OH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XGHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XLHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XZHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XZH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XKHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XUH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XGH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XKH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XLH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XUHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ops", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.battery", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.keanium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.oxidant", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ghodium_melt", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.reductant", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.zynthium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.silicon", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.wire", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.crystal", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.liquid", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.lemergium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.utrium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.purifier", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.composite", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.switch", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.transistor", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.microchip", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.rampart", + "value": 0, + "type": 1 + }, + { + "path": "totals.rooms.reserved", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.move", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.extension", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.storage", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.cell", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.phlegm", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.alloy", + "value": 0, + "type": 1 + }, + { + "path": "intents.income.harvest.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.harvest.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.dismantle.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.dismantle.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.repair.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.repair.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.build.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.build.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.upgradeController.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.upgradeController.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.attack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.attack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedAttack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedAttack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedMassAttack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedMassAttack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.heal.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.heal.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedHeal.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedHeal.effect", + "value": 0, + "type": 0 + } +] \ No newline at end of file diff --git a/files/defaultActions.unknown.json b/files/defaultActions.unknown.json index 94a9bd3..9c072e1 100644 --- a/files/defaultActions.unknown.json +++ b/files/defaultActions.unknown.json @@ -1,767 +1,867 @@ [ - { - "path": "totals.creeps", - "value": 0, - "type": 1 - }, - { - "path": "totals.structures", - "value": 0, - "type": 1 - }, - { - "path": "totals.constructionSites", - "value": 0, - "type": 1 - }, - { - "path": "totals.resourcesStored", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.road", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.rampart", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.spawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.extension", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.link", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.storage", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.tower", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.observer", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.extractor", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.lab", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.terminal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.container", - "value": 0, - "type": 1 - }, - { - "path": "countByType.structures.nuker", - "value": 0, - "type": 1 - }, - { - "path": "constructionSites.progressPercentage", - "value": 0, - "type": 1 - }, - { - "path": "constructionSites.progressNeeded", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.road", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.rampart", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.spawn", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.extension", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.link", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.storage", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.tower", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.observer", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.powerSpawn", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.extractor", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.lab", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.terminal", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.container", - "value": 0, - "type": 1 - }, - { - "path": "structureHits.nuker", - "value": 0, - "type": 1 - }, - { - "path": "totals.rooms.unknown", - "value": 0, - "type": 1 - }, - { - "path": "totals.intents", - "value": 0, - "type": 0 - }, - { - "path": "countByType.creepParts.move", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.work", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.carry", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.repair", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.harvest", - "value": 0, - "type": 0 - }, - { - "path": "countByType.creepParts.ranged_attack", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.heal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.road", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.attack", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.attack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.heal", - "value": 0, - "type": 0 - }, - { - "path": "countByType.constructionSites.container", - "value": 0, - "type": 1 - }, - { - "path": "countByType.creepParts.claim", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.rangedMassAttack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.build", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.rangedAttack", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.rangedHeal", - "value": 0, - "type": 0 - }, - { - "path": "countByType.creepParts.tough", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.extension", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.storage", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.rampart", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.energy", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GO", - "value": 0, - "type": 1 - }, - { - "path": "countByType.intents.upgradeController", - "value": 0, - "type": 0 - }, - { - "path": "countByType.intents.move", - "value": 0, - "type": 0 - }, - { - "path": "resourcesStored.LO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.L", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.battery", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XGH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.lemergium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.U", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.H", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.reductant", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.G", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.Z", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.K", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.metal", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.power", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XKHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XGHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XUH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ops", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XLHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.OH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.X", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.LHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZK", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.zynthium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZO", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.UL", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KH", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.KH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.oxidant", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.keanium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.utrium_bar", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XKH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XUHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XZHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XZH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.XLH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ghodium_melt", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.GHO2", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.ZH2O", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.alloy", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.spawn", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.terminal", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.lab", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.silicon", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.wire", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.frame", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.crystal", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.microchip", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.switch", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.transistor", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.composite", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.liquid", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.purifier", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.biomass", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.cell", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.condensate", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.mist", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.extractor", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.fixtures", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.tube", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.hydraulics", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.circuit", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.concentrate", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.constructedWall", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.machine", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.extract", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.spirit", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.emanation", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.essence", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.tissue", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.muscle", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.organoid", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.phlegm", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.organism", - "value": 0, - "type": 1 - }, - { - "path": "resourcesStored.device", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.link", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.tower", - "value": 0, - "type": 1 - }, - { - "path": "countByType.constructionSites.factory", - "value": 0, - "type": 1 - } -] + { + "path": "totals.creeps", + "value": 0, + "type": 1 + }, + { + "path": "totals.structures", + "value": 0, + "type": 1 + }, + { + "path": "totals.constructionSites", + "value": 0, + "type": 1 + }, + { + "path": "totals.resourcesStored", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.road", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.rampart", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.spawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.extension", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.link", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.storage", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.tower", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.observer", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.extractor", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.lab", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.terminal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.container", + "value": 0, + "type": 1 + }, + { + "path": "countByType.structures.nuker", + "value": 0, + "type": 1 + }, + { + "path": "constructionSites.progressPercentage", + "value": 0, + "type": 1 + }, + { + "path": "constructionSites.progressNeeded", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.road", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.rampart", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.spawn", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.extension", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.link", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.storage", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.tower", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.observer", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.powerSpawn", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.extractor", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.lab", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.terminal", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.container", + "value": 0, + "type": 1 + }, + { + "path": "structureHits.nuker", + "value": 0, + "type": 1 + }, + { + "path": "totals.rooms.unknown", + "value": 0, + "type": 1 + }, + { + "path": "totals.intents", + "value": 0, + "type": 0 + }, + { + "path": "countByType.creepParts.move", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.work", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.carry", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.repair", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.harvest", + "value": 0, + "type": 0 + }, + { + "path": "countByType.creepParts.ranged_attack", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.heal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.road", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.attack", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.attack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.heal", + "value": 0, + "type": 0 + }, + { + "path": "countByType.constructionSites.container", + "value": 0, + "type": 1 + }, + { + "path": "countByType.creepParts.claim", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.rangedMassAttack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.build", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.rangedAttack", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.rangedHeal", + "value": 0, + "type": 0 + }, + { + "path": "countByType.creepParts.tough", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.extension", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.storage", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.rampart", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.energy", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GO", + "value": 0, + "type": 1 + }, + { + "path": "countByType.intents.upgradeController", + "value": 0, + "type": 0 + }, + { + "path": "countByType.intents.move", + "value": 0, + "type": 0 + }, + { + "path": "resourcesStored.LO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.L", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.battery", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XGH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.lemergium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.U", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.H", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.reductant", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.G", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.Z", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.K", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.metal", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.power", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XKHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XGHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XUH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ops", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XLHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.OH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.X", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.LHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZK", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.zynthium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZO", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.UL", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KH", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.KH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.oxidant", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.keanium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.utrium_bar", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XKH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XUHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XZHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XZH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.XLH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ghodium_melt", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.GHO2", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.ZH2O", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.alloy", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.spawn", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.terminal", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.lab", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.silicon", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.wire", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.frame", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.crystal", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.microchip", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.switch", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.transistor", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.composite", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.liquid", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.purifier", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.biomass", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.cell", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.condensate", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.mist", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.extractor", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.fixtures", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.tube", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.hydraulics", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.circuit", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.concentrate", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.constructedWall", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.machine", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.extract", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.spirit", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.emanation", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.essence", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.tissue", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.muscle", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.organoid", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.phlegm", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.organism", + "value": 0, + "type": 1 + }, + { + "path": "resourcesStored.device", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.link", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.tower", + "value": 0, + "type": 1 + }, + { + "path": "countByType.constructionSites.factory", + "value": 0, + "type": 1 + }, + { + "path": "intents.income.harvest.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.harvest.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.dismantle.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.income.dismantle.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.repair.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.repair.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.build.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.build.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.upgradeController.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.outcome.upgradeController.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.attack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.attack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedAttack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedAttack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedMassAttack.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedMassAttack.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.heal.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.heal.effect", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedHeal.cost", + "value": 0, + "type": 0 + }, + { + "path": "intents.offensive.rangedHeal.effect", + "value": 0, + "type": 0 + } +] \ No newline at end of file diff --git a/src/helper/users.js b/src/helper/users.js index fe30f38..92a5d86 100644 --- a/src/helper/users.js +++ b/src/helper/users.js @@ -1,6 +1,4 @@ // eslint-disable-next-line import/no-cycle -import Cache from "../setup/cache.js"; - let usersCache = []; export function UpdateLocalUsersCache(cache) { usersCache = cache; @@ -12,11 +10,6 @@ export function GetUserData(username) { return user; } -export async function GetUsernames() { - const users = await Cache.getUserByIdCache(); - return users.map((user) => user.username); -} - // export function GetUsername(room, shard) { // const usernames = GetUsernames(); diff --git a/src/setup/cache.js b/src/setup/cache.js index 089e985..8eb0699 100644 --- a/src/setup/cache.js +++ b/src/setup/cache.js @@ -47,9 +47,6 @@ export default class Cache { case 'userRooms': cache = userRoomsCache; break; - case 'userById': - cache = userByIdCache; - break; default: break; } @@ -96,19 +93,6 @@ export default class Cache { return userRoomsCache.data; } - static async getUserByIdCache() { - if (Cache.shouldUpdateCache('userById')) { - if (userByIdCache.isUpdating) return userByIdCache.data; - userByIdCache.isUpdating = true; - logger.info('Updating userById cache'); - await Cache.updateUserByIdCache(); - userByIdCache.lastUpdate = Date.now(); - userByIdCache.isUpdating = false; - } - logger.info('Returning userById cache'); - return userByIdCache.data; - } - static async updateRoomsCache() { const userRooms = await Cache.getUserRoomsCache(); const shards = {}; @@ -147,7 +131,12 @@ export default class Cache { let users = await advancedScreepsApi.getAllUsers() users = users.filter(forcedUsers.length > 0 ? (user) => forcedUsers.includes(user.username) : () => true); users.sort((a, b) => GetRoomTotal(b.shards, 'type') - GetRoomTotal(a.shards, 'type')); + const userValues = Object.values(users); + for (let u = 0; u < userValues.length; u += 1) { + const user = userValues[u]; + ProcessDataBroker.usernamesById[user.id] = user.username; + } fs.writeFileSync("./files/users.json", JSON.stringify(users, null, 2)); UpdateLocalUsersCache(users); usersCache.data = users; @@ -163,17 +152,4 @@ export default class Cache { userRoomsCache.data = userRooms; } - - static async updateUserByIdCache() { - const userById = {}; - - const users = await this.getUsersCache(); - const userValues = Object.values(users); - for (let u = 0; u < userValues.length; u += 1) { - const user = userValues[u]; - userById[user.id] = user; - ProcessDataBroker.usernamesById[user.id] = user.username; - } - userByIdCache.data = userById; - } } \ No newline at end of file