UNPKG

cosa-nostra-backstabbers

Version:
29 lines (15 loc) 521 B
var lcn = require("../../../../../source/lcn.js"); var rs = lcn.rolesystem; // Defaults to shooting // Godfather can override // See godfather/kill_vote module.exports = function (actionable, game, params) { var outcome = rs.prototypes.basicAttack(...arguments); var from = game.getPlayerByIdentifier(actionable.from); if (!outcome) { var to = game.getPlayerByIdentifier(actionable.to); } else { from.misc.kills_to_win--; }; }; module.exports.TAGS = ["drivable", "roleblockable", "visit"];