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
Spawn cancel (branched from spawn directions) #68
Conversation
Also, crazy idea: canceling a spawn at 40% results in a creep popping out that has the last/inner 40% of its body parts. I could implement that here. |
I hope that idea does not become reality, but amusing to think about. |
Please rebase this to the |
Actually, I just realized that this PR should have |
done |
Squashed commit of the following: commit 48aa1bb1ec54a0211d5d6e083f44467eb4a7d0c1 Merge: 072b738 cdd2f45 Author: Artem Chivchalov <chivchalov@gmail.com> Date: Fri Feb 9 12:15:05 2018 +0300 Merge branch 'spawn-cancel' of https://github.com/sparr/screeps-engine into sparr-spawn-cancel # Conflicts: # src/game/structures.js # src/processor/intents/spawns/_born-creep.js # src/processor/intents/spawns/intents.js # src/utils.js commit cdd2f45 Author: Clarence "Sparr" Risher <sparr0@gmail.com> Date: Tue Oct 31 14:13:57 2017 -0700 Spawn.spawning.cancel() commit 73f906f Author: Clarence "Sparr" Risher <sparr0@gmail.com> Date: Mon Oct 23 22:13:24 2017 -0700 move StructureSpawn.setSpawnDirections to StructureSpawn.Spawning.setDirections commit d4e02ac Author: Clarence "Sparr" Risher <sparr0@gmail.com> Date: Tue Oct 17 19:18:34 2017 -0700 honor spawnDirections when spawning creep commit 38b551d Author: Clarence "Sparr" Risher <sparr0@gmail.com> Date: Tue Oct 17 19:17:47 2017 -0700 implement Spawn.spawnCreep(...,{spawnDirections:[]}) commit 82385fa Author: Clarence "Sparr" Risher <sparr0@gmail.com> Date: Tue Oct 17 15:49:00 2017 -0700 implement StructureSpawn.setSpawnDirections
Merged in 8eee58c. |
Closes #64
This PR is a branch from #61 because they share some functionality. I could rebase this from master if there's a chance of this going in before #61 does.