Gameplay changes
- Walls construction is now allowed at Room Controller Level 2.
- Constructing new spawn now doesn't create ramparts around it.
API changes
- Breaking change: methods
Room.lookForAt
andRoom.lookForAtArea
now return an array in case if multiple objects found at the tile. - Added new method
Structure.transferEnergy
for extensions. - Added new methods
Structure.destroy
andSpawn.destroy
. - Added new methods
Structure.notifyWhenAttacked
andSpawn.notifyWhenAttacked
. - Added new method
RoomPosition.findClosestByRange
. - Added new methods
RoomPosition.look
andRoomPosition.lookFor
. - The option
withinRampartsOnly
inRoom.findPath
method is now considered deprecated and will be removed soon.
Very nice additions!
Thanks.
Very cool! I also like the new Interface.
lookFor(type) should also return a list. Same reason like with Room.lookForAt and Room.lookForAtArea.
Does Structure.transferEnergy() exclusively transfer energy to creeps or is it possible to transfer energy to an adjacent extension as well?