screeps-snippets
screeps-snippets copied to clipboard
This repository is for saving pinned snippets from the screeps slack for posterity
Adds a prototype for each actions that calculates the amount it can perform this tick based on number of parts and boosts. (example: creep.repairAmount for the amount a creep can...
Adds a row to the right sidebar when a creep is selected, allowing you to instruct creeps to say things on-demand from the client. 
Transition to a class and added functionality to improve user adaptability into their code base. Several minor performance edits were made (less iterations through for loops)
https://github.com/screepers/screeps-snippets/blob/8b557a3fcb82cb734fca155b07d5a48622f9da60/src/misc/JavaScript/Memory%20Cache.js#L11 Just implemented this snippet. if you try to run `Memory = memory` you get a `Memory is not defined` error in screeps. Changing that line to `global.Memory = memory`...
I wrote the original javascript snippet and have recently ported it to typescript, improved the functionality, and made it compatible with the data structure used by some other tools and...