code: function _getIndexOfId(id) {
  	return _.indexOf(goblin.ambush, _.find(goblin.ambush, {id}))
  }
docs: Gets the index of an stored ambush function given its id (or -1 if not exist).
  
  @param {string} id Ambush function id.
  @returns {int} Index of the ambush function or -1.