@open-screeps/tower-effectiveness-at-range
v1.0.0
Published
Calculate the effectiveness of tower actions at the given range
Downloads
1
Readme
tower-effectiveness-at-range
Calculate the effectiveness of tower actions at the given range
Install
$ npm install @open-screeps/tower-effectiveness-at-range
Usage
import { towerEffectivenessAtRange } from '@open-screeps/tower-effectiveness-at-range';
let damage = towerEffectivenessAtRange(creep.pos.getRangeTo(tower));
let heal = towerEffectivenessAtRange(creep.pos.getRangeTo(tower), 'heal');
let repair = towerEffectivenessAtRange(container.pos.getRangeTo(tower), 'repair');