This is the first part of the massive amounts of changes I had to make to get it to build and run after so long, so mostly tooling and updates, gathering various changes across the community, with a few small functional changes thrown in (mostly around ruins and tombstones), which I'll describe below.
Added:
Basic ruin handling. Doesn't really work right, but wires the property to Room.
Changed:
Up-to-date versions of most dependencies. Some of our types have been replaced by ones from typed-screeps.
Switch to ESLint since TSLint has been merged in it.
Removed most deprecated functions in favor of the current ones. It's a simple pass, so things like being efficient with room status checks (which can be costly) came later (#191). Also, a load of changes about the new Store class.
Lots of stricter type-safety tweaks.
178
Fillers get reassigned as transports instead of self-terminating when the bootstrap condition clears
findBlockingPos works across rooms now, because MiningOverlord uses it and it was throwing errors.
Task gained a generic parameter for its target type. I don't remember why I did that; I think I was chasing after a crashing invalid task, or maybe something about TaskRecharge.
Room status is taken into account when selecting outposts, expansion locations, and when random-scout-walking around.
Improved the output of the outpost efficiency commands. Also made it account for the expected container position.
Fixed:
194
172
171
183
Fixed a bug with bunker mode enabling itself even with a broken layout (starting spawn outside of the bunker boundaries)
Fixed push priority calculation for Managers
Testing checklist:
[x] Changes are backward-compatible: not sure. I don't think there's anything in there that actually saves to memory since it's mostly cleanup or changes that don't end up touching Memory.
[x] Codebase compiles with current tsconfig configuration
[x] Tested changes on public server (well at the time)
Pull request summary
Description:
This is the first part of the massive amounts of changes I had to make to get it to build and run after so long, so mostly tooling and updates, gathering various changes across the community, with a few small functional changes thrown in (mostly around ruins and tombstones), which I'll describe below.
Added:
Room
.Changed:
Store
class.178
findBlockingPos
works across rooms now, because MiningOverlord uses it and it was throwing errors.Task
gained a generic parameter for its target type. I don't remember why I did that; I think I was chasing after a crashing invalid task, or maybe something aboutTaskRecharge
.Fixed:
194
172
171
183
Testing checklist:
Memory
.tsconfig
configuration