Better Server Config
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
serverConfig:
|
||||||
|
tickRate: 100
|
||||||
|
whitelist:
|
||||||
|
- YoshiUnfriendly
|
||||||
|
gclToCPU: true
|
||||||
|
maxCPU: 100
|
||||||
|
baseCPU: 20
|
||||||
|
stepCPU: 10
|
||||||
|
|
||||||
mods:
|
mods:
|
||||||
- screepsmod-auth
|
- screepsmod-auth
|
||||||
- screepsmod-admin-utils
|
- screepsmod-admin-utils
|
||||||
|
|||||||
@@ -18,13 +18,7 @@ class RequisitionsManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const spawn of room.find(FIND_MY_SPAWNS)) {
|
for (const spawn of room.find(FIND_MY_SPAWNS)) {
|
||||||
const requestResult = this.fulfillSpawnRequisition(spawn, creepRequisition);
|
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.`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
|||||||
Reference in New Issue
Block a user