Expand description
Re-export of all constants related to structures.
Re-exports§
pub use super::extra::CONSTRUCTION_SITE_DROP_RATIO;
pub use super::extra::LAB_REACTION_RANGE;
pub use super::extra::TERMINAL_SEND_COST_SCALE;
Enums§
- Structure
Type - Translates
STRUCTURE_*
constants.
Constants§
- CONSTRUCTION_
COST_ ROAD_ SWAMP_ RATIO - Build, decay, and hits multiplier for roads built on swamp tiles.
- CONSTRUCTION_
COST_ ROAD_ WALL_ RATIO - Build, decay, and hits multiplier for roads built on natural wall tiles (tunnels)
- CONTAINER_
CAPACITY - Store capacity of container structures.
- CONTAINER_
DECAY - Hits lost on the container per decay.
- CONTAINER_
DECAY_ TIME - Ticks between hit loss due to decay in unowned rooms.
- CONTAINER_
DECAY_ TIME_ OWNED - Ticks between hit loss due to decay in owned rooms.
- CONTAINER_
HITS - Initial hits for container structures; consider using the
StructureType::initial_hits
function. - EXTENSION_
HITS - Initial hits for extension structures; consider using the
StructureType::initial_hits
function. - EXTRACTOR_
COOLDOWN - Ticks of cooldown for the extractor timer after tick that at least one creep
successfully used
Creep::harvest
. - EXTRACTOR_
HITS - Initial hits for extractor structures; consider using the
StructureType::initial_hits
function. - FACTORY_
CAPACITY - Store capacity of factory structures.
- FACTORY_
HITS - Initial hits for factory structures; consider using the
StructureType::initial_hits
function. - INVADER_
CORE_ CONTROLLER_ DOWNGRADE - Duration of stronghold ‘deployment’, during which they are invulnerable.
- INVADER_
CORE_ CONTROLLER_ POWER - The reservation points added or removed per tick by invader cores.
- INVADER_
CORE_ HITS - Initial hits for invader cores; consider using the
StructureType::initial_hits
function. - LAB_
ENERGY_ CAPACITY - Store capacity for energy in lab structures.
- LAB_
HITS - Initial hits for lab structures; consider using the
StructureType::initial_hits
function. - LAB_
MINERAL_ CAPACITY - Store capacity for minerals in lab structures.
- LINK_
CAPACITY - Energy capacity of link structures.
- LINK_
COOLDOWN - Ticks of link cooldown after transferring energy per distance to destination.
- LINK_
HITS - Initial hits for link structures; consider using the
StructureType::initial_hits
function. - LINK_
LOSS_ RATIO - Percentage of the energy that is lost when transferred by
StructureLink::transfer_energy
. - NUKER_
COOLDOWN - Cooldown for nuker structers after firing.
- NUKER_
ENERGY_ CAPACITY - Energy capacity of the nuker, which is spent to fire a nuke.
- NUKER_
GHODIUM_ CAPACITY - Ghodium capacity of the nuker, which is spent to fire a nuke.
- NUKER_
HITS - Initial hits for nuker structures; consider using the
StructureType::initial_hits
function. - OBSERVER_
HITS - Initial hits for observer structures; consider using the
StructureType::initial_hits
function. - POWER_
BANK_ HITS - Initial hits for power bank structures; consider using the
StructureType::initial_hits
function. - POWER_
SPAWN_ ENERGY_ CAPACITY - Maximum energy capacity for a power spawn to use in
StructurePowerSpawn::process_power
. - POWER_
SPAWN_ HITS - Initial hits for power spawn structures; consider using the
StructureType::initial_hits
function. - POWER_
SPAWN_ POWER_ CAPACITY - Maximum power capacity for a power spawn to use in
StructurePowerSpawn::process_power
. - RAMPART_
DECAY_ AMOUNT - Hits lost per decay period for ramparts
- RAMPART_
DECAY_ TIME - Ticks between rampart decays, losing
RAMPART_DECAY_AMOUNT
hits. - RAMPART_
HITS - Initial hits for rampart structures when built; consider using the
StructureType::initial_hits
function. - RAMPART_
HITS_ MAX_ RCL2 - Max rampart hits at RCL 2; consider using the
rampart_hits_max
function. - RAMPART_
HITS_ MAX_ RCL3 - Max rampart hits at RCL 3; consider using the
rampart_hits_max
function. - RAMPART_
HITS_ MAX_ RCL4 - Max rampart hits at RCL 4; consider using the
rampart_hits_max
function. - RAMPART_
HITS_ MAX_ RCL5 - Max rampart hits at RCL 5; consider using the
rampart_hits_max
function. - RAMPART_
HITS_ MAX_ RCL6 - Max rampart hits at RCL 6; consider using the
rampart_hits_max
function. - RAMPART_
HITS_ MAX_ RCL7 - Max rampart hits at RCL 7; consider using the
rampart_hits_max
function. - RAMPART_
HITS_ MAX_ RCL8 - Max rampart hits at RCL 8; consider using the
rampart_hits_max
function. - ROAD_
DECAY_ AMOUNT - Hits lost upon decay for roads, before swamp/tunnel multipliers
- ROAD_
DECAY_ TIME - Ticks between road decay events without traffic
- ROAD_
HITS - Maximum hits for road structures, before swamp/tunnel multipliers
- ROAD_
WEAROUT - Tick penalty to a road’s decay, per creep body part, when a creep steps on it.
- ROAD_
WEAROUT_ POWER_ CREEP - Tick penalty to a road’s decay when a power creep steps on it.
- RUIN_
DECAY - Ticks that ruins will last when structures are destroyed.
- SPAWN_
ENERGY_ CAPACITY - Maximum energy capacity of spawn structures.
- SPAWN_
HITS - Initial hits for spawn structures; consider using the
StructureType::initial_hits
function. - STORAGE_
CAPACITY - Store capacity for storage structures without power creep effects.
- STORAGE_
HITS - Initial hits for storage structures; consider using the
StructureType::initial_hits
function. - STRONGHOLD_
DECAY_ TICKS - Average ticks until collapse for a stronghold.
- TERMINAL_
CAPACITY - Store capacity of terminal structures.
- TERMINAL_
HITS - Initial hits for terminal structures; consider using the
StructureType::initial_hits
function. - TERMINAL_
SEND_ COST - Currently unused in game (see
market::calc_transaction_cost
andTERMINAL_SEND_COST_SCALE
instead). - TOWER_
CAPACITY - Energy capacity of tower structures.
- TOWER_
HITS - Initial hits for tower structures; consider using the
StructureType::initial_hits
function. - WALL_
HITS - Initial hits for wall structures when built; consider using the
StructureType::initial_hits
function. - WALL_
HITS_ MAX - Maximum hits for wall structures.
Functions§
- extension_
energy_ capacity - Translates the
EXTENSION_ENERGY_CAPACITY
constant, the energy capacity of each source structure at a given room control level. - invader_
core_ creep_ spawn_ time - Ticks per body part that invader cores of each level take to spawn defensive creeps.
- invader_
core_ expand_ time - Ticks between creation of invader cores in rooms in the sector for each level of stronghold.
- rampart_
hits_ max - Translates the
RAMPART_HITS_MAX
constant, the maximum rampart hits for a given room control level. - ruin_
decay_ structures - Structures with special rules for their ruins’ ticks to live, currently only power banks.
- stronghold_
rampart_ hits - Rampart hits for each level of stronghold.