KungFuClan / KungFuScreeps

https://screepers.gitbook.io/screeps-typescript-starter/
9 stars 4 forks source link

Change link logic #97

Open UhmBrock opened 4 years ago

UhmBrock commented 4 years ago

Links are currently hard coded to have a receiver at controller and every other link feeds it

Ideally we can do this instead:

If the closest thing to a link is a source, it is a transmitter If the closest thing to a link is a controller, it is a receiver if the closest thing to a link is a storage/terminal, it is both a receiver and a transmitter.

Storage link will be a receiver while controller link is full. Otherwise it is a transmitter link

This allows us to place links next to our miners and have them be used to transmit to either controller or straight to storage, eliminating container mining.