Module spawn

Source
Expand description

Re-export of all constants related to StructureSpawn operations.

Re-exports§

pub use super::extra::SPAWN_NAME_MAX_LENGTH;

Constants§

CREEP_SPAWN_TIME
Ticks taken to spawn each creep body part, before power creep effects.
ENERGY_REGEN_TIME
Ticks to source regen after first Creep::harvest since last regen.
MAX_CREEP_SIZE
Maximum body parts per creep.
SPAWN_ENERGY_CAPACITY
Maximum energy capacity of spawn structures.
SPAWN_ENERGY_START
Initial energy for spawn structures when built.
SPAWN_RENEW_RATIO
Additional TTL bonus, and reduction in energy cost, when renewing a creep compared to spawning.

Functions§

extension_energy_capacity
Translates the EXTENSION_ENERGY_CAPACITY constant, the energy capacity of each source structure at a given room control level.