REPAIR_COST 0. Obstacle objects types list (undocumented in api documentation, probably used for pathfinder) OBSTACLE_OBJECT_TYPES [Įnergy constants (undocumented in api documentation) ENERGY_REGEN_TIME 300 // Time untill source regenerates new energy since first harvested energyĮNERGY_REGEN_AMOUNT 3000 // Amount of energy a source has once it respawnsĮNERGY_DECAY 1000 // Rate of vanished energy from dropped energy per tick It costs 10 ops to use with a range of 3 and, has a cooldown of 10 ticks. Structure Types STRUCTURE_SPAWN "spawn"Ĭreeps constants (undocumented in api documentation) CREEP_SPAWN_TIME 3 // Base spawn timeĬREEP_LIFE_TIME 1500 // Lifetime of a creepĬREEP_CORPSE_RATE 0.2 // Portion of remaining creep value that is dropped upon death OperateTower edit edit source A power that increases the damage, repair and, healing of a tower for a duration of 100 ticks. Properties (undocumented in api documentation) LOOK_CREEPS "creep" Direction constants TOP 1 LOOK_CONSTRUCTION_SITES "constructionSite" Used in results when finding objects at a position Used to for some search functions to filter by type. Used by functions sending commands to the screeps engine. Modular architecture of a script will allow easy testing of individual functions in the simulator. Use loop architecture to save CPU on the logic you do not have to run each tick. You can output HTML content to the console, like links to rooms.
Screeps tower range code#
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. This page lists some of the tips listed on the 'Tip of the day:' popup, as well as additional information.`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).Storages and containers have and structure.storeCapacity instead of structure.energy and structure.energ圜apacity.
![screeps tower range screeps tower range](https://static.wikia.nocookie.net/infinitode-2/images/c/c2/Level_3.4.png)
Storages have 10000 hits, which is more than the 5000 hits you coded for in the search.