UNPKG

cosa-nostra-backstabbers

Version:
20 lines (13 loc) 629 B
var rs = require("../../../rolesystem/rolesystem.js"); module.exports = function (actionable, game, params) { var target = game.getPlayerByIdentifier(actionable.to); var alien = game.getPlayerByIdentifier(actionable.from); rs.prototypes.basicKidnap.reason = "abducted"; var outcome = rs.prototypes.basicKidnap(...arguments); if (outcome) { game.addMessage(target, ":exclamation: You were abducted last night!"); } else { game.addMessage(target, ":exclamation: Someone tried to abduct you last night but you could not be abducted!"); }; }; module.exports.TAGS = ["drivable", "roleblockable", "visit"];