Constant screeps::constants::CREEP_CORPSE_RATE
source · pub const CREEP_CORPSE_RATE: f32 = 0.2;
Expand description
Percentage of TTL-adjusted creep resource costs added to tombstone.
When creeps die, if they had remaining TTL then a proportion of the cost of
the creep, both in energy per body part (bounded by
CREEP_PART_MAX_ENERGY
) and resources spent on boosts, are placed in the
creep’s tombstone.