JeallyRabbit / Screeps_MyScriptV2

0 stars 0 forks source link

Doctor Driver #207

Closed JeallyRabbit closed 1 week ago

JeallyRabbit commented 2 weeks ago

Go with this 3 states - define creep.task:

creep.tasks (definied only if creep.task== undefined) CLEAR_OUTPUT=1 if there is something in output labs - take it from them and put into storage (merchant will take all not lvl3 boosts and put them into terminal) 1.1 if task == CLEAR_OUTPUT and they are empty -> task=undefined

CLEAR_INPUT=2 if one input lab is empty - clear resource from second input and put to storage 2.1 if task==CLEAR_INPUT and they are empty -> task=undefined

FILL_INPUT=3 if both input labs are empty find reaction for them to run 3.1 if task==FILL_INPUT and there is something in them -> task=undefined