la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
29 lines (19 loc) • 821 B
JavaScript
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (actionable, game, params) {
// Send visit
game.execute("visit", {visitor: actionable.from,
target: actionable.to,
priority: actionable.priority,
reason: "zm_firefighter_2-visit"});
// Remove douse
var extinguisher = game.getPlayerByIdentifier(actionable.from);
var target = game.getPlayerByIdentifier(actionable.to);
if (target.misc.doused === true) {
target.misc.doused = false;
// Is doused
game.addMessage(extinguisher, ":exclamation: You managed to remove gasoline from your target!");
game.addMessage(target, ":exclamation: Someone extinguished you last night and removed gasoline from you!");
};
};
module.exports.TAGS = ["drivable", "roleblockable", "visit"];