Skip to content

Commit

Permalink
fix hauler slow logistics response
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonBurke committed Jan 15, 2024
1 parent 5eeab97 commit 77d54b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/room/creeps/roleManagers/commune/hauler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class Hauler extends Creep {
if (this.room.name !== this.commune.name) {
// Fulfill requests near the hauler

creepProcs.runRoomLogisticsRequestAdvanced(this, {
creepProcs.runRoomLogisticsRequestsAdvanced(this, {
types: new Set([
RoomLogisticsRequestTypes.pickup,
RoomLogisticsRequestTypes.withdraw,
Expand Down Expand Up @@ -468,7 +468,7 @@ export class Hauler extends Creep {
if (isBySourceHarvestPos || creepMemory[CreepMemoryKeys.roomLogisticsRequests].length > 0) {
const freeNextStoreInitial = this.freeNextStore

creepProcs.runRoomLogisticsRequestAdvanced(this, {
creepProcs.runRoomLogisticsRequestsAdvanced(this, {
types: new Set([RoomLogisticsRequestTypes.pickup, RoomLogisticsRequestTypes.withdraw]),
resourceTypes: new Set([RESOURCE_ENERGY]),
conditions: request => {
Expand Down Expand Up @@ -503,7 +503,7 @@ export class Hauler extends Creep {

// Fulfill requests near the hauler

creepProcs.runRoomLogisticsRequestAdvanced(this, {
creepProcs.runRoomLogisticsRequestsAdvanced(this, {
types: new Set<RoomLogisticsRequestTypes>([
RoomLogisticsRequestTypes.pickup,
RoomLogisticsRequestTypes.withdraw,
Expand Down Expand Up @@ -560,7 +560,7 @@ export class Hauler extends Creep {
if (this.room.name === commune.name) {
creepProcs.passiveRenew(this)

creepProcs.runRoomLogisticsRequestAdvanced(this, {
creepProcs.runRoomLogisticsRequestsAdvanced(this, {
types: new Set([RoomLogisticsRequestTypes.transfer]),
resourceTypes: new Set([RESOURCE_ENERGY]),
noDelivery: true,
Expand Down Expand Up @@ -1040,7 +1040,7 @@ export class Hauler extends Creep {
runCommuneLogistics?() {
creepProcs.passiveRenew(this)

if (creepProcs.runRoomLogisticsRequestAdvanced(this) === Result.action) {
if (creepProcs.runRoomLogisticsRequestsAdvanced(this) === Result.action) {
this.relay()
return Result.action
}
Expand Down
2 changes: 1 addition & 1 deletion src/room/creeps/roleManagers/international/allyVanguard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class AllyVanguard extends Creep {
if (this.room.controller.owner) return false

if (
creepProcs.runRoomLogisticsRequestAdvanced(this, {
creepProcs.runRoomLogisticsRequestsAdvanced(this, {
resourceTypes: new Set([RESOURCE_ENERGY]),
}) === Result.success
)
Expand Down

0 comments on commit 77d54b5

Please sign in to comment.