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:
|
||||
- screepsmod-auth
|
||||
- screepsmod-admin-utils
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user