- Breaking change:
Game.getUsedCpumethod is now synchronous and returns a float number for better precision. Game.notifymethod 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_CREEPSFIND_MY_CREEPSFIND_HOSTILE_CREEPSFIND_SOURCES_ACTIVEFIND_SOURCESFIND_DROPPED_ENERGYFIND_STRUCTURESFIND_MY_STRUCTURESFIND_HOSTILE_STRUCTURESFIND_FLAGSFIND_CONSTRUCTION_SITESFIND_MY_SPAWNSFIND_HOSTILE_SPAWNSFIND_EXIT_TOPFIND_EXIT_RIGHTFIND_EXIT_BOTTOMFIND_EXIT_LEFTGame.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.