Module power

Source
Expand description

Re-export of all constants related to power.

Re-exports§

pub use super::extra::POWER_CREEP_CARRY_CAPACITY_PER_LEVEL;
pub use super::extra::POWER_CREEP_HITS_PER_LEVEL;
pub use super::extra::POWER_CREEP_NAME_MAX_LENGTH;

Enums§

PowerCreepClass
Translates the POWER_CLASS constants, which are classes of power creeps
PowerType
Translates the PWR_* constants, which are types of powers used by power creeps

Constants§

POWER_BANK_CAPACITY_MAX
Maximum power capacity for power banks, before accounting for POWER_BANK_CAPACITY_CRIT.
POWER_BANK_CAPACITY_MIN
Maximum power capacity for power banks.
POWER_BANK_DECAY
Ticks for a power bank to decay if not destroyed.
POWER_BANK_HITS
Initial hits for power bank structures; consider using the StructureType::initial_hits function.
POWER_BANK_HIT_BACK
Percentage of damage dealt to power banks that is dealt back to attacking creeps.
POWER_BANK_RESPAWN_TIME
Base value for power bank respawn time calculation.
POWER_CREEP_DELETE_COOLDOWN
Time, in milliseconds, after a deletion is started via AccountPowerCreep::delete that it can no longer be canceled.
POWER_CREEP_LIFE_TIME
Maximum ticks to live for power creeps
POWER_CREEP_MAX_LEVEL
Maximum level for power creeps.
POWER_CREEP_SPAWN_COOLDOWN
Time, in milliseconds, that a power creep must wait to respawn after dying.
POWER_LEVEL_MULTIPLY
Base growth rate of processed power needed per global power level (GPL).
POWER_LEVEL_POW
Exponential growth rate of processed power needed per global power level (GPL).
POWER_SPAWN_ENERGY_CAPACITY
Maximum energy capacity for a power spawn to use in StructurePowerSpawn::process_power.
POWER_SPAWN_ENERGY_RATIO
Energy consumed per point of power processed by StructurePowerSpawn::process_power.
POWER_SPAWN_POWER_CAPACITY
Maximum power capacity for a power spawn to use in StructurePowerSpawn::process_power.