TooAngel / screeps

TooAngel NPC / bot / source code for screeps
https://screeps.com
GNU Affero General Public License v3.0
600 stars 154 forks source link

[LOGIC REFINE] Detect if reserver's target is already controlled by someone, make it reserve other room / turn it to a scout #659

Open XenoAmess opened 2 years ago

mschultheiss83 commented 1 year ago

reserver's are not good at scouting, they are too heavy: claim body part to move over swamps maybe your could transform them into claimer if Memory.myRooms.length < Game.gcl.level https://github.com/TooAngel/screeps/blob/8221c00ae9bc6f0b92d5c480b29767e200d96344/src/role_claimer.js

XenoAmess commented 1 year ago

recycle it for now and see if it can do. I planned to build a mechanism to:

  1. add to recycle list
  2. check build queue and fetch usable creep in recycle list, and fetch out some useful creeps to make them work.
  3. real recycle the useless creeps.
XenoAmess commented 1 year ago

reserver's are not good at scouting, they are too heavy: claim body part to move over swamps

yes it be. it moves really slow...

TooAngel commented 1 year ago

I thought about it this way.

If a room is controlled, we don't start to reserve it. If it is not controlled and we start to reserve it, it is our room. So we reserve and harvest it. If someone attacks the room, we need to defend it and not just stop harvesting.