- Breaking change:
Game.getUsedCpu
method is now synchronous and returns a float number for better precision. Game.notify
method is now functional.
|
Game.getUsedCpu
method is now synchronous and returns a float number for better precision.Game.notify
method is now functional.Exit
objects removed from the game. Now all non-wall border squares (i.e. with x
or y
equal to 0 or 49) are treated as exits.Game.getRoom
, RoomPosition.findNearest
and RoomPosition.equalsTo
removed from the API.Game
scope. Now they are accessible only through the global scope.ERR_RCL_NOT_ENOUGH
and ERR_GCL_NOT_ENOUGH
.STRUCTURE_CONTROLLER
.Structure.level
, Structure.progressTotal
, Structure.ticksToLive
.Room.controller
.Creep.claimController
, Creep.unclaimController
, Creep.upgradeController
.Game
scope.FIND_
prefix:
FIND_CREEPS
FIND_MY_CREEPS
FIND_HOSTILE_CREEPS
FIND_SOURCES_ACTIVE
FIND_SOURCES
FIND_DROPPED_ENERGY
FIND_STRUCTURES
FIND_MY_STRUCTURES
FIND_HOSTILE_STRUCTURES
FIND_FLAGS
FIND_CONSTRUCTION_SITES
FIND_MY_SPAWNS
FIND_HOSTILE_SPAWNS
FIND_EXIT_TOP
FIND_EXIT_RIGHT
FIND_EXIT_BOTTOM
FIND_EXIT_LEFT
Game.map
.Room.findExitTo
.MODE_ARENA
.STRUCTURE_PORTAL
.Room.survivalInfo
.ConstructionSite.ticksToLive
.STRUCTURE_KEEPER_LAIR
.Structure.ticksToSpawn
.Room.memory
.Room.lookForAt
.Room.lookForAtArea
.RoomPosition.getRangeTo
.RoomPosition.equalsTo
has been renamed to RoomPosition.isEqualTo
.Game.cpuLimit
.Game.getUsedCpu
.Game.rooms
. Method Game.getRoom
is now deprecated and will be removed soon.Room.mode
.TOUGH
body part no longer requires a spawn extension. It is now possible to build a creep with up to 30 TOUGH
parts without any extensions available.TOUGH
body part cost from 5 to 20.