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§
- Power
Creep Class - Translates the
POWER_CLASS
constants, which are classes of power creeps - Power
Type - 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
.