Better Server Config

This commit is contained in:
2025-07-16 13:15:27 -03:00
parent a4b8081006
commit a3841bd173
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,12 @@
serverConfig:
tickRate: 100
whitelist:
- YoshiUnfriendly
gclToCPU: true
maxCPU: 100
baseCPU: 20
stepCPU: 10
mods:
- screepsmod-auth
- screepsmod-admin-utils

View File

@@ -18,13 +18,7 @@ class RequisitionsManager {
}
for (const spawn of room.find(FIND_MY_SPAWNS)) {
const requestResult = this.fulfillSpawnRequisition(spawn, creepRequisition);
if (requestResult) {
console.log(`Spawn ${spawn.name} has fulfilled a creep requisition.`);
} else {
console.log(`Spawn ${spawn.name} could not fulfill any creep requisition.`);
}
this.fulfillSpawnRequisition(spawn, creepRequisition);
}
return state;