Add a new subset of AnyOwnedStructures
, excluding KeeperLairs
, etc.
#229
Labels
BREAKING CHANGE
A breaking change would be introduced
enhancement
good first issue
Good for newcomers
Brief Description
In the source of @screeps/engine, we can see that
StructurePowerBank
,StructureKeeperLair
,StructureInvaderCore
are derived fromOwnedStructure
prototype. This was designed to supportFIND_HOSTILE_STRUCTURES
(especiallyPowerBank
)However, real players can never own those structures (in the official server).
We can add a new union of structures, excluding those unownable structures.
Considering that there is a
Game.structures
and typing it's value asAnyOwnedStructure
is incorrect, it would be good to introduce this new union type.The text was updated successfully, but these errors were encountered: