la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
23 lines (14 loc) • 502 B
JavaScript
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (actionable, game, params) {
// Null actions if roleblocked
var inclusive = ["a/blessing_vigour", "a/blessing_security"];
var action = game.actions.find(x => x.from === actionable.from && inclusive.includes(x.identifier));
if (action) {
// Do stuff
rs.modular.attributeDecrement({
from: actionable.from,
identifier: action.identifier
}, game, params);
};
};