la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
20 lines (13 loc) • 629 B
JavaScript
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"];