1.0.1 • Published 6 years ago

@open-screeps/is-source-keeper v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

is-source-keeper

Check if something is a Source Keeper

Install

$ npm install @open-screeps/is-source-keeper

Usage

import { isSourceKeeper } from '@open-screeps/is-source-keeper';

const hostiles = Game.rooms.sim.find(FIND_HOSTILE_CREEPS);
const sourceKeepers = invaders.filter(isSourceKeeper);

Related

License

MIT