la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
31 lines (22 loc) • 884 B
JavaScript
var rs = require("../../../rolesystem/rolesystem.js");
module.exports = function (actionable, game, params) {
var poisoned = game.getPlayerByIdentifier(actionable.to);
var poisoner = game.getPlayerByIdentifier(actionable.from);
game.execute("visit", {visitor: actionable.from,
target: actionable.to,
priority: actionable.priority,
reason: "Toxicologist-poison"});
game.addAction("toxicologist/poison_kill", ["cycle"], {
name: "Poison-kill",
expiry: 3,
execution: 3,
from: actionable.from,
to: actionable.to,
attack: actionable.target,
priority: 4,
tags: ["poison"]
});
game.addMessage(poisoned, ":exclamation: You were poisoned last night! You will die from the poison if you are not cured before tomorrow.");
poisoner.misc.toxicologist_poisons_left--;
};
module.exports.TAGS = ["drivable", "roleblockable", "visit"];