@open-screeps/tower-effectiveness-at-range
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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');

Related

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @open-screeps/tower-effectiveness-at-range

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • postcrafter