Skip to content

Commit

Permalink
shoving additions
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonBurke committed May 28, 2024
1 parent 84b5180 commit 5ce35d3
Show file tree
Hide file tree
Showing 13 changed files with 266 additions and 242 deletions.
2 changes: 0 additions & 2 deletions src/other/profilerRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { CollectiveManager } from 'international/collective'
import { MarketManager } from 'international/market/marketOrders'
import { GarbageCollector } from 'international/garbageCollector'
import { EndTickManager } from 'international/endTick'
import { EndTickCreepManager } from 'room/creeps/endTickCreepManager'
import { PowerCreepOrganizer } from 'international/powerCreepOrganizer'
import { LinkManager } from 'room/commune/links'
import { CombatRequestManager } from 'room/commune/combatRequest'
Expand Down Expand Up @@ -162,7 +161,6 @@ export function profilerRegister() {
profiler.registerClass(ConstructionManager, 'ConstructionManager')
profiler.registerClass(RemotesManager, 'RemotesManager')
profiler.registerClass(HaulRequestManager, 'HaulRequestManager')
profiler.registerClass(EndTickCreepManager, 'EndTickCreepManager')
profiler.registerClass(LinkManager, 'LinkManager')
profiler.registerClass(DefenceProcs, 'DefenceProcs')
profiler.registerClass(DefenceUtils, 'DefenceUtils')
Expand Down
5 changes: 3 additions & 2 deletions src/room/commune/commune.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {
findObjectWithID,
getRange,
packAsNum, findLowestScore,
packAsNum,
findLowestScore,
roundTo,
forCoordsAroundRange
forCoordsAroundRange,
} from 'utils/utils'
import './workRequest'
import './combatRequest'
Expand Down
4 changes: 3 additions & 1 deletion src/room/commune/communeOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { HaulerNeedOps } from './haulerNeedOps'
import { CommuneManager } from './commune'
import { RoomOps } from 'room/roomOps'
import { WorkRequestOps } from './workRequest'
import { MyCreepServices } from 'room/creeps/myCreepServices'

/**
* Minor processes for communes
Expand Down Expand Up @@ -214,7 +215,8 @@ export class CommuneOps {
SpawningStructureOps.tryRunSpawning(room)

SpawningStructureOps.tryRegisterSpawningMovement(room)
room.roomManager.endTickCreepManager.run()
MyCreepServices.moveCreeps(room)
MyCreepServices.chant(room)
room.roomManager.roomVisualsManager.run()

this.test(room)
Expand Down
4 changes: 2 additions & 2 deletions src/room/commune/spawning/spawningStructureOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@ export class SpawningStructureOps {
})
}

if (CreepMoveProcs.shove(creepAtPos, new Set([packedCoord]))) {
/* if (CreepMoveProcs.shove(creepAtPos, new Set([packedCoord]))) {
creep.room.errorVisual(unpackCoord(creep.moveRequest))
creep.moved = creep.moveRequest
delete room.moveRequests[creep.moved]
delete creep.moveRequest
}
} */

continue
}
Expand Down
4 changes: 3 additions & 1 deletion src/room/construction/construction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export class ConstructionManager {
if (!creepName) continue

const creep = Game.creeps[creepName]
CreepMoveProcs.shove(creep)

// Need an alternate solution
/* CreepMoveProcs.shove(creep) */
}
}
private shouldPlace() {
Expand Down
Loading

0 comments on commit 5ce35d3

Please sign in to comment.