-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP][LOGIC REFINE]change from suicide to recycle. #664
base: master
Are you sure you want to change the base?
[WIP][LOGIC REFINE]change from suicide to recycle. #664
Conversation
617c978
to
9700015
Compare
8ec2132
to
51294b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check Creep.recycleCreep prototype_creep_startup_tasks.js:101
screeps/src/prototype_creep_startup_tasks.js
Line 101 in 8240847
Creep.recycleCreep = function(creep) { |
please use the exiting function
cf85f76
to
8d47bc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess patching the Creep.recycleCreep function would be necessary
creep.memory.timeToTravel > 0 && creep.memory.born - Game.time < creep.memory.timeToTravel
and let the recycleCreep decide between suicide and recycle
3faccb0
to
2437f49
Compare
0ae5855
to
9693007
Compare
…_or_a_scout,_instead_of_kill_it_
close #658