@screeps/engine
Version:
This is a module for Screeps standalone server. See [main repository](https://github.com/screeps/screeps) for more info.
22 lines (18 loc) • 598 B
JavaScript
;
const _ = require('lodash'),
utils = require('../../../utils'),
driver = utils.getDriver(),
C = driver.constants;
module.exports = function (object, intents, scope) {
const gameTime = scope.gameTime;
if (object.landTime == 1 + gameTime) {
_.forEach(intents.users, userIntents => {
_.forEach(userIntents.objects, i => {
if (!!i.createCreep) {
i.createCreep = null;
}
});
});
}
};
//# sourceMappingURL=../../../sourcemaps/processor/intents/nukes/pretick.js.map