screeps
screeps copied to clipboard
Scripts for my Screeps MMO colonies (JS; ongoing).
When non-combat creeps are fleeing enemies, use RoomPosition.isWalkable(true) to look ahead and make sure they aren't walking into a wall!
When a remote mining room is under attack (e.g. Invaders), carriers end up stacked on edge tiles, blocking the way of soldiers advancing to the room. Implement travelSwap in this...
Soldiers attack Keepers instead of passing by them.
https://www.reddit.com/r/screeps/comments/cm5o0w/so_is_everyone_just_using_overmind_now/ > frankster Asymmetric warfare against overminds gives good results if you force them to over-respond. So send into one of their remotes a little attacking creep with 1 attack,...
Double check if pinging into Safe Mode is implemented properly. That it goes into safe mode if: Enemy gets to core structure? (e.g. Tower spawn extension storage etc)
A log to quickly see all custom populations and wall targets
Delay placement of walls (rcl 3) until after extensions/tower built.
If 1 link is within range of multiple targets (controller, source), will make erroneous definitions.
If multiple spawns in 1 room start spawning at the same tick, only 1 console.log() reaches output
When sequentially calling _.sortBy ... figure out how to combine sorting conditions into 1 statement... potentially using tertiaries or multipliers?? Because more _sortBy's * longer arrays to sort == CPU...