

module (to export javascript code using module.exports)įollowing are object prototypes of ingame objects, any added property to its prototype will be available to its instances.`global` and `globals` are available in the sandbox, but none of them are defined when scripts are run server side. Note: the global object itself should be assumed non-existing. 2.19.2 Terrain types (undocumented in api documentation).2.19.1 costs (undocumented in api documentation).2.19 Storage constants (undocumented in api documentation).2.18 Link constants (undocumented in api documentation).2.17 Extension constants (undocumented in api documentation).2.16 Wall constants (undocumented in api documentation).2.15 Road constants (undocumented in api documentation).2.14 Source constants (undocumented in api documentation).2.13 Spawn constants (undocumented in api documentation).2.12 Rampart constants (undocumented in api documentation).2.11 Energy constants (undocumented in api documentation).2.10 Obstacle objects types list (undocumented in api documentation, probably used for pathfinder).2.9 Creeps constants (undocumented in api documentation).Once a player spawns their first power creep, they can enable power in any room with a controller by using a PowerCreep's enableRoom() while adjacent to it. Power has to be enabled in a room for PowerCreeps to be used. If the controller under attack is claimed, it cannot be upgraded or attacked again for the next 1,000 ticks.Īctivate Safe mode Ī claimed controller starts with one use of Safe Mode available at RCL 1, and gains another for each additional control level.Īdding additional safe modes Ī creep carrying 1000 Ghodium can call generateSafeMode() in range 1 of a controller, and add an additional safe mode to the room.Įnabling PowerCreeps You do not need to claim or reserve a controller in order to sign it, and it is possible to sign controllers belonging to other players.ĭuring or after combat between players, a player's suitably equipped creeps can attack a controller belonging to another player, downgrading the controller's claim timer by 300 ticks per CLAIM body part, or reservation timer by 1 tick per CLAIM body part. Signing a controller allows you to leave a message on that room until it is either overwritten or removed. Reserving a room controller does not allow you to build OwnedStructures in it, but will increase the energy per Source to the same amounts as claimed rooms. This will also prevent other players from claiming the room, and shrink the size of projected respawn/novice zones. Reserving a room's controller allows you to maintain control of a room without actually claiming it. Once at RCL 8, you can only put 15 Energy per tick into a controller. Upgrading requires Energy to do, at a 1:1 ratio. Upgrading a claimed controller is how both Room Control Level and Global Control Level are increased. Claiming a room doubles the energy you can harvest from 1500 to 3000 energy per 300 tick cooldown for each Source. Any additional rooms need to be programmatically claimed by a creep. A player's first action in the game is claiming their first room. Actions on a controller Claiming Ĭlaiming a room controller gives you ownership of the room, and allows you to build OwnedStructures in that room.
