UNPKG

@screeps/engine

Version:

This is a module for Screeps standalone server. See [main repository](https://github.com/screeps/screeps) for more info.

26 lines (21 loc) 557 B
'use strict'; var _ = require('lodash'), utils = require('../../../utils'), driver = utils.getDriver(), C = driver.constants; module.exports = function (object, intent, {}) { if (object.type != 'creep') { return; } if (object.spawning) { return; } if (!_.isString(intent.message)) { return; } object.actionLog.say = { message: intent.message.substring(0, 10), isPublic: intent.isPublic }; }; //# sourceMappingURL=../../../sourcemaps/processor/intents/creeps/say.js.map