@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • postcrafter