Module screeps_utils::math
source · Expand description
Functions allowing calculation of the resulting values of formulas used by game mechanics related to constant values.
Functions§
- Provides the total number of control points needed to achieve a given Global Control Level
- Provides the total number of processed power needed to achieve a given Global Power Level
- Provides the amount of damage done by tower attacks at a given range, after accounting for reduction from
TOWER_FALLOFF
. - Provides the amount of damage healed by tower healing at a given range, after accounting for reduction from
TOWER_FALLOFF
. - Provides the amount of damage repaired by towers at a given range, after accounting for reduction from
TOWER_FALLOFF
.